Integrated the member.ts router into the index.ts
This commit is contained in:
parent
465ac9c643
commit
93505bba2a
@ -5,6 +5,7 @@ import authRoutes from "./auth";
|
|||||||
import accountRoutes from "./account";
|
import accountRoutes from "./account";
|
||||||
import projectRoutes from "./project";
|
import projectRoutes from "./project";
|
||||||
import keyRoutes from "./key";
|
import keyRoutes from "./key";
|
||||||
|
import memberRoutes from "./member";
|
||||||
|
|
||||||
const app: Router = express.Router();
|
const app: Router = express.Router();
|
||||||
|
|
||||||
@ -18,6 +19,7 @@ app.use(authenticate);
|
|||||||
|
|
||||||
app.use("/project", projectRoutes);
|
app.use("/project", projectRoutes);
|
||||||
app.use("/key", keyRoutes);
|
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("*", (req: Request, res: Response) => sendError(res, 404, 0, "The provided route could not be found"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user