Skip to content

Commit

Permalink
feat: auth routes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nahyan0077 committed Jul 15, 2024
1 parent 9f3aa81 commit 4fff8c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auth-service/src/presentation/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ app.use(morgan('dev'));
// Routes

// Home route
app.get('/', (req: Request, res: Response) => {
app.get('/api/auth/test', (req: Request, res: Response) => {
res.status(200).json({
message: "Auth service ON!"
});
});

app.use('/', routes(dependancies));
app.use('/api/auth', routes(dependancies));

// Not found handler
app.all("*", (req: Request, res: Response) => {
res.status(404).json({ success: false, status: 404, message: "API Not found" });
res.status(404).json({ success: false, status: 404, message: "API Not found--->AUTH" });
});

app.use(errorHandler)
Expand Down

0 comments on commit 4fff8c9

Please sign in to comment.