From 7af607dd79cbfbe2ded2bc766318c0cbc1c9a9ac Mon Sep 17 00:00:00 2001 From: Wesley Finck Date: Wed, 29 Oct 2025 17:28:08 -0700 Subject: [PATCH] refactor: move testRoutes to shared infrastructure directory Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) --- src/shared/infrastructure/http/app.ts | 2 +- src/shared/infrastructure/http/routes/testRoutes.ts | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/shared/infrastructure/http/routes/testRoutes.ts diff --git a/src/shared/infrastructure/http/app.ts b/src/shared/infrastructure/http/app.ts index 50b180ea..df847d3d 100644 --- a/src/shared/infrastructure/http/app.ts +++ b/src/shared/infrastructure/http/app.ts @@ -7,7 +7,7 @@ import { createAtprotoRoutes } from '../../../modules/atproto/infrastructure/atp import { createCardsModuleRoutes } from '../../../modules/cards/infrastructure/http/routes'; import { createFeedRoutes } from '../../../modules/feeds/infrastructure/http/routes/feedRoutes'; import { createSearchRoutes } from '../../../modules/search/infrastructure/http/routes/searchRoutes'; -import { createTestRoutes } from '../../../modules/test/infrastructure/http/routes/testRoutes'; +import { createTestRoutes } from './routes/testRoutes'; import { EnvironmentConfigService, Environment, diff --git a/src/shared/infrastructure/http/routes/testRoutes.ts b/src/shared/infrastructure/http/routes/testRoutes.ts new file mode 100644 index 00000000..7e21e325 --- /dev/null +++ b/src/shared/infrastructure/http/routes/testRoutes.ts @@ -0,0 +1,10 @@ +import { Router, Request, Response } from 'express'; + +export const createTestRoutes = (router: Router) => { + // Simple ping/pong endpoint for performance testing + router.get('/ping', (req: Request, res: Response) => { + res.json({ message: 'pong' }); + }); + + return router; +}; -- 2.51.2