From f43265e139e4543d02fc5b34dfeb966fd2b18627 Mon Sep 17 00:00:00 2001 From: Joshua Graber Date: Tue, 10 Dec 2024 06:33:13 -0500 Subject: [PATCH] fix: add test routes --- src/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.ts b/src/index.ts index 8db61d3..eb8be30 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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);