Integrated the member.ts router into the index.ts

This commit is contained in:
Mathias Wagner 2023-01-22 19:54:14 +01:00
parent 465ac9c643
commit 93505bba2a
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -5,6 +5,7 @@ import authRoutes from "./auth";
import accountRoutes from "./account";
import projectRoutes from "./project";
import keyRoutes from "./key";
import memberRoutes from "./member";
const app: Router = express.Router();
@ -18,6 +19,7 @@ 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"));