docs(backend): Setup swagger-autogen
This commit is contained in:
parent
3cd7496989
commit
ab8ece2a76
9 changed files with 929 additions and 19 deletions
7
backend/src/swagger.ts
Normal file
7
backend/src/swagger.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { RequestHandler } from 'express';
|
||||
import swaggerUi from 'swagger-ui-express';
|
||||
import swaggerDocument from '../../docs/api/swagger.json';
|
||||
|
||||
const swaggerMiddleware: RequestHandler = swaggerUi.setup(swaggerDocument);
|
||||
|
||||
export default swaggerMiddleware;
|
Loading…
Add table
Add a link
Reference in a new issue