Implemented the key.ts router into the index.ts

This commit is contained in:
Mathias Wagner 2023-01-22 18:04:38 +01:00
parent d53a9ed23f
commit d0060fe20c
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -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"));