mirror of
https://github.com/detleph/server.git
synced 2026-09-05 16:06:21 +02:00
patched issues found during testing
This commit is contained in:
+8
-2
@@ -14,7 +14,9 @@ import logger from "./Middleware/error/logger";
|
||||
import debugLogger from "./Middleware/debug/logger";
|
||||
import mediaRouter from "./Routes/media.routes";
|
||||
import userRouter from "./Routes/user_auth.routes";
|
||||
import TeamRouter from "./Routes/team.routes";
|
||||
import teamRouter from "./Routes/team.routes";
|
||||
import roleRouter from "./Routes/role.routes";
|
||||
import participantRouter from "./Routes/participant.routes";
|
||||
import { notFoundHandler, rootHandler } from "./Middleware/error/defaultRoutes";
|
||||
|
||||
// Set up async error handling
|
||||
@@ -87,7 +89,11 @@ async function main() {
|
||||
|
||||
app.use("/api/users", userRouter);
|
||||
|
||||
app.use("/api/teams", TeamRouter);
|
||||
app.use("/api/teams", teamRouter);
|
||||
|
||||
app.use("/api/roles", roleRouter);
|
||||
|
||||
app.use("/api/participants", participantRouter);
|
||||
|
||||
app.get("/", rootHandler);
|
||||
app.get("/api", rootHandler);
|
||||
|
||||
Reference in New Issue
Block a user