Removed unused imports from the routes index.ts
This commit is contained in:
parent
afbdd16816
commit
ecfbc346f6
@ -1,5 +1,4 @@
|
|||||||
import express, {Request, Response, Router} from "express";
|
import express, {Router} from "express";
|
||||||
import {sendError} from "@utils/error";
|
|
||||||
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";
|
||||||
@ -13,7 +12,6 @@ const app: Router = express.Router();
|
|||||||
app.use("/auth", authRoutes);
|
app.use("/auth", authRoutes);
|
||||||
app.use("/user", accountRoutes);
|
app.use("/user", accountRoutes);
|
||||||
|
|
||||||
|
|
||||||
// Middlewares that require authentication
|
// Middlewares that require authentication
|
||||||
app.use("/project", authenticate, projectRoutes);
|
app.use("/project", authenticate, projectRoutes);
|
||||||
app.use("/key", authenticate, keyRoutes);
|
app.use("/key", authenticate, keyRoutes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user