Skip to content

Commit

Permalink
feat: add healthcheck to the public route (#172)
Browse files Browse the repository at this point in the history
* feat: add healthcheck to the public route

* feat: add espace
  • Loading branch information
Frompaje authored Aug 30, 2024
1 parent 4567dae commit bfa07a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { setupRoutes } from '@/config/routes';

const app = Express();

setupRoutes(app);
setupMiddlewares(app);
setupHealthCheck(app);
setupMiddlewares(app);
setupRoutes(app);

export { app };
6 changes: 5 additions & 1 deletion src/shared/routes/public-routes.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export const publicRoutes = ['/api/users', '/api/auth/login'];
export const publicRoutes = [
'/api/users',
'/api/auth/login',
'/api/healthcheck',
];

0 comments on commit bfa07a4

Please sign in to comment.