fase(21): openapi documentation with scalar
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,7 @@ import { createRequestIdMiddleware } from './middleware/requestId';
|
||||
import { notFoundMiddleware } from './middleware/notFound';
|
||||
import { globalErrorHandler } from './middleware/errorHandler';
|
||||
import { createRouter } from './router';
|
||||
import { createApiDocsRouter } from './openapi';
|
||||
import { CrawlingControllerDeps } from '../modules/crawling/infrastructure/http/CrawlingController';
|
||||
import { FindingsControllerDeps } from '../modules/findings/infrastructure/http/FindingsController';
|
||||
import { FuzzingControllerDeps } from '../modules/fuzzing/infrastructure/http/FuzzingController';
|
||||
@@ -93,6 +94,9 @@ export function createServer(deps: ServerDependencies): Express {
|
||||
// 7. Module routes
|
||||
app.use('/api', createRouter(deps));
|
||||
|
||||
// 7b. API documentation (no auth required)
|
||||
app.use('/api-docs', createApiDocsRouter());
|
||||
|
||||
// 8. 404 handler
|
||||
app.use(notFoundMiddleware);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user