You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
524 B
18 lines
524 B
4 years ago
|
import * as express from "express"
|
||
|
import AdminRoute from "./admin";
|
||
|
import UserRoute from "./user";
|
||
|
import InternalRoute from "./internal";
|
||
|
import Login from "./user/login";
|
||
|
import { AuthGetUser } from "./client/user";
|
||
|
|
||
|
const ApiRouter: express.IRouter<void> = express.Router();
|
||
|
ApiRouter.use("/admin", AdminRoute);
|
||
|
ApiRouter.use("/user", UserRoute);
|
||
|
ApiRouter.use("/internal", InternalRoute);
|
||
|
|
||
|
ApiRouter.use("/user", AuthGetUser);
|
||
|
|
||
|
// Legacy reasons (deprecated)
|
||
|
ApiRouter.post("/login", Login);
|
||
|
|
||
|
export default ApiRouter;
|