fix(app): emit.maxlistener issue
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m27s

BREAKING CHANGE: moved teh middleware to call the api hits to the main app and removed from
everywhere else

closes #18
This commit is contained in:
2026-05-11 13:25:43 -05:00
parent 85e96f5ed1
commit 7c31b43a4a
16 changed files with 105 additions and 36 deletions

View File

@@ -1,11 +1,11 @@
import type { Express } from "express";
import { routeHitMiddleware } from "../middleware/routeHit.middleware.js";
import login from "./login.route.js";
import register from "./register.route.js";
export const setupAuthRoutes = (baseUrl: string, app: Express) => {
//setup all the routes
app.use(routeHitMiddleware);
app.use(`${baseUrl}/api/authentication/login`, login);
app.use(`${baseUrl}/api/authentication/register`, register);
};