Fixed a bug in the routes index.ts
This commit is contained in:
parent
c1d6b736ef
commit
bb0a7aad64
@ -15,12 +15,8 @@ app.use("/user", accountRoutes);
|
||||
|
||||
|
||||
// Middlewares that require authentication
|
||||
app.use(authenticate);
|
||||
|
||||
app.use("/project", projectRoutes);
|
||||
app.use("/key", keyRoutes);
|
||||
app.use("/member", memberRoutes);
|
||||
|
||||
app.use("*", (req: Request, res: Response) => sendError(res, 404, 0, "The provided route could not be found"));
|
||||
app.use("/project", authenticate, projectRoutes);
|
||||
app.use("/key", authenticate, keyRoutes);
|
||||
app.use("/member", authenticate, memberRoutes);
|
||||
|
||||
export default app;
|
Loading…
x
Reference in New Issue
Block a user