Optimized the routes index.ts
This commit is contained in:
parent
fb30a1170c
commit
416c6b335e
@ -1,4 +1,4 @@
|
|||||||
import express, {Router} from "express";
|
import {Router} from "express";
|
||||||
import { authenticate } from "@middlewares/auth";
|
import { authenticate } from "@middlewares/auth";
|
||||||
import authRoutes from "./auth";
|
import authRoutes from "./auth";
|
||||||
import accountRoutes from "./account";
|
import accountRoutes from "./account";
|
||||||
@ -6,7 +6,7 @@ import projectRoutes from "./project";
|
|||||||
import keyRoutes from "./key";
|
import keyRoutes from "./key";
|
||||||
import memberRoutes from "./member";
|
import memberRoutes from "./member";
|
||||||
|
|
||||||
const app: Router = express.Router();
|
const app: Router = Router();
|
||||||
|
|
||||||
// Middlewares that don't require authentication
|
// Middlewares that don't require authentication
|
||||||
app.use("/auth", authRoutes);
|
app.use("/auth", authRoutes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user