mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
Add routes for organisations
+ FIX: Change eventId type
This commit is contained in:
@@ -4,6 +4,7 @@ import eventRouter from "./Routes/event.routes";
|
||||
import adminAuthRouter from "./Routes/admin_auth.routes";
|
||||
import argon2 from "argon2";
|
||||
import adminRouter from "./Routes/admin.routes";
|
||||
import organisationRouter from "./Routes/organisation.routes";
|
||||
|
||||
require("dotenv").config(); // Load dotenv config
|
||||
|
||||
@@ -46,6 +47,8 @@ async function main() {
|
||||
|
||||
app.use("/api/admins", adminRouter);
|
||||
|
||||
app.use("/api/organisations", organisationRouter);
|
||||
|
||||
app.listen(process.env.PORT, () => {
|
||||
console.log(`Listening on Port: ${process.env.PORT}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user