From d0060fe20c1fff036c111ed904d192c5f66712d5 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 22 Jan 2023 18:04:38 +0100 Subject: [PATCH] Implemented the key.ts router into the index.ts --- src/routes/v1/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/v1/index.ts b/src/routes/v1/index.ts index 571199b..7fccdc7 100644 --- a/src/routes/v1/index.ts +++ b/src/routes/v1/index.ts @@ -4,6 +4,7 @@ import { authenticate } from "@middlewares/auth"; import authRoutes from "./auth"; import accountRoutes from "./account"; import projectRoutes from "./project"; +import keyRoutes from "./key"; const app: Router = express.Router(); @@ -16,6 +17,7 @@ app.use("/user", accountRoutes); app.use(authenticate); 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"));