chore: small code adjustment
This commit is contained in:
parent
c5e3107e03
commit
8cd9cb5901
2 changed files with 14 additions and 3 deletions
11
src/controllers/api-controller.ts
Normal file
11
src/controllers/api-controller.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { Controller, Get, Route, Tags } from "tsoa";
|
||||
import swaggerDocument from "../swagger.json";
|
||||
|
||||
@Route("api")
|
||||
@Tags("OpenAPI")
|
||||
export class APIController extends Controller {
|
||||
@Get("openapi")
|
||||
public getOpenAPI() {
|
||||
return swaggerDocument;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue