Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
chore: don't use base path for routers
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasCharrier committed Jan 15, 2024
1 parent 6493d85 commit d858c5f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,7 @@ import {
} from './controllers/startupController/getStartupInfoCreate';
import { getBadgeRenewalPage } from './controllers/accountController/getBadgeRenewalPage';
import { postBadgeRenewalRequest } from './controllers/badgeRequestsController/postBadgeRenewalRequest';
import {
userRoutes,
userApiRoutes,
userApiRouter,
userPublicApiRouter,
} from './routes/users';
import { userRouter, userApiRouter, userPublicApiRouter } from './routes/users';

export const app = express();
app.set('trust proxy', 1);
Expand Down Expand Up @@ -256,9 +251,9 @@ app.post(
app.post(routes.SIGNIN, loginController.postSignIn);
app.get(routes.LOGOUT, logoutController.getLogout);
app.get(routes.LOGOUT_API, logoutController.getLogoutApi);
app.use('/users', userRoutes);
app.use('/api/users', userApiRouter);
app.use('/api/public/users', userPublicApiRouter);
app.use(userRouter);
app.use(userApiRouter);
app.use(userPublicApiRouter);

// que ce passe-t-il
app.get(
Expand Down

0 comments on commit d858c5f

Please sign in to comment.