2021-12-29 23:08:41 +00:00
|
|
|
import exprs from 'express';
|
|
|
|
const { Router } = exprs;
|
|
|
|
import authenticateRoutes from './authenticate.js';
|
|
|
|
import boltzRoutes from './boltz.js';
|
|
|
|
import loopRoutes from './loop.js';
|
|
|
|
import RTLConfRoutes from './RTLConf.js';
|
2022-10-14 20:53:36 +00:00
|
|
|
import pageSettingsRoutes from './pageSettings.js';
|
2021-12-29 23:08:41 +00:00
|
|
|
const router = Router();
|
|
|
|
const sharedRoutes = [
|
|
|
|
{ path: '/authenticate', route: authenticateRoutes },
|
|
|
|
{ path: '/boltz', route: boltzRoutes },
|
|
|
|
{ path: '/loop', route: loopRoutes },
|
2022-10-14 20:53:36 +00:00
|
|
|
{ path: '/conf', route: RTLConfRoutes },
|
|
|
|
{ path: '/pagesettings', route: pageSettingsRoutes }
|
2021-12-29 23:08:41 +00:00
|
|
|
];
|
|
|
|
sharedRoutes.forEach((route) => {
|
|
|
|
router.use(route.path, route.route);
|
|
|
|
});
|
|
|
|
export default router;
|