2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-17 15:29:30 +00:00
RTL/server/routes/shared/index.ts

24 lines
666 B
TypeScript
Raw Permalink 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';
2023-08-15 23:51:25 +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 },
2023-08-15 23:51:25 +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;