mirror of
https://github.com/detleph/server.git
synced 2026-09-06 07:56:19 +02:00
Add controller and routes for groups
This commit is contained in:
@@ -5,6 +5,7 @@ import adminAuthRouter from "./Routes/admin_auth.routes";
|
||||
import argon2 from "argon2";
|
||||
import adminRouter from "./Routes/admin.routes";
|
||||
import organisationRouter from "./Routes/organisation.routes";
|
||||
import groupRouter from "./Routes/group.routes";
|
||||
|
||||
require("dotenv").config(); // Load dotenv config
|
||||
|
||||
@@ -49,6 +50,8 @@ async function main() {
|
||||
|
||||
app.use("/api/organisations", organisationRouter);
|
||||
|
||||
app.use("/api/groups", groupRouter);
|
||||
|
||||
app.listen(process.env.PORT, () => {
|
||||
console.log(`Listening on Port: ${process.env.PORT}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user