retropilot-server/src/server/router/api/index.js

21 lines
466 B
JavaScript
Raw Normal View History

2022-03-22 07:03:17 -06:00
import express from 'express';
2022-03-22 09:14:08 -06:00
import log4js from 'log4js';
2022-03-22 07:03:17 -06:00
2022-03-22 09:14:08 -06:00
import admin from './admin';
2022-03-22 07:03:17 -06:00
import auth from './auth';
import devices from './devices';
2022-03-22 09:14:08 -06:00
import useradmin from './useradmin';
2022-03-22 07:03:17 -06:00
// /api
2022-03-22 09:14:08 -06:00
const router = express.Router();
router.use('/admin', admin);
2022-03-22 07:03:17 -06:00
router.use('/auth', auth);
router.use('/devices', devices);
2022-03-22 09:14:08 -06:00
router.use('/useradmin', useradmin);
// TODO: setup oauth and twofactor endpoints
// app.use(routers.oauthAuthenticator);
2022-03-22 07:03:17 -06:00
export default router;