Implemented the key.ts router into the index.ts
This commit is contained in:
parent
d53a9ed23f
commit
d0060fe20c
@ -4,6 +4,7 @@ import { authenticate } from "@middlewares/auth";
|
|||||||
import authRoutes from "./auth";
|
import authRoutes from "./auth";
|
||||||
import accountRoutes from "./account";
|
import accountRoutes from "./account";
|
||||||
import projectRoutes from "./project";
|
import projectRoutes from "./project";
|
||||||
|
import keyRoutes from "./key";
|
||||||
|
|
||||||
const app: Router = express.Router();
|
const app: Router = express.Router();
|
||||||
|
|
||||||
@ -16,6 +17,7 @@ app.use("/user", accountRoutes);
|
|||||||
app.use(authenticate);
|
app.use(authenticate);
|
||||||
|
|
||||||
app.use("/project", projectRoutes);
|
app.use("/project", projectRoutes);
|
||||||
|
app.use("/key", keyRoutes);
|
||||||
|
|
||||||
app.use("*", (req: Request, res: Response) => sendError(res, 404, 0, "The provided route could not be found"));
|
app.use("*", (req: Request, res: Response) => sendError(res, 404, 0, "The provided route could not be found"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user