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
12 lines
338 B
TypeScript
12 lines
338 B
TypeScript
import type { Express } from "express";
|
|
|
|
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(`${baseUrl}/api/authentication/login`, login);
|
|
app.use(`${baseUrl}/api/authentication/register`, register);
|
|
};
|