Skip to content

Commit

Permalink
fix: set proper route
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Jul 29, 2024
1 parent 9885130 commit 73b18eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const createApp = (): { app: Express; router: express.Router } => {
});
});

app.get('/versions', async (req, res) => {
router.get('/versions', async (req, res) => {
const {
'document-drive': docDrive,
'document-model': docModel,
Expand Down
2 changes: 1 addition & 1 deletion api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function startServer(
}

app.use(errorHandler);
app.get('/metrics', async (req: express.Request, res: express.Response) => {
router.get('/metrics', async (req: express.Request, res: express.Response) => {
const prismaMetrics = await prisma.$metrics.prometheus();
const appMetrics = await register.metrics();
return res.send(prismaMetrics + appMetrics);
Expand Down

0 comments on commit 73b18eb

Please sign in to comment.