2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-10-31 09:20:27 +00:00
RTL/server/routes/shared/index.ts

24 lines
666 B
TypeScript
Raw Normal View History

2022-12-28 03:04:23 +00:00
import exprs from 'express';
2021-12-29 23:08:41 +00:00
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;