2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-05 21:20:25 +00:00
RTL/backend/routes/shared/index.js

20 lines
674 B
JavaScript
Raw Normal View History

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;