Skip to content

Commit a1cde7b

Browse files
Add missing /api/exists route registration
The exists() endpoint handler was implemented but the route was never registered in the container's router setup, causing e2e tests to fail with HTTP 500 errors. This adds the missing route registration for POST /api/exists to the file handler in routes/setup.ts. Co-authored-by: Naresh <[email protected]>
1 parent b43c4e1 commit a1cde7b

File tree

1 file changed

+7
-0
lines changed
  • packages/sandbox-container/src/routes

1 file changed

+7
-0
lines changed

packages/sandbox-container/src/routes/setup.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ export function setupRoutes(router: Router, container: Container): void {
9191
middleware: [container.get('loggingMiddleware')],
9292
});
9393

94+
router.register({
95+
method: 'POST',
96+
path: '/api/exists',
97+
handler: async (req, ctx) => container.get('fileHandler').handle(req, ctx),
98+
middleware: [container.get('loggingMiddleware')],
99+
});
100+
94101
// Port management routes
95102
router.register({
96103
method: 'POST',

0 commit comments

Comments
 (0)