Skip to content

Commit

Permalink
fix: add test routes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber committed Dec 10, 2024
1 parent c3df77e commit f43265e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ app.use(express.json());
app.use(addRequestId);
app.use(requestLogger);

// Test routes
// @ts-expect-error foo
app.get('/x-forwarded-for', (request, response) =>
response.send(request.headers['x-forwarded-for'])
);
// @ts-expect-error foo
app.get('/ip', (request, response) => response.send(request.ip));
// Routes
app.use('/health', healthRouter);
app.use('/donor-box', donorBoxRouter);
Expand Down

0 comments on commit f43265e

Please sign in to comment.