feat: add config endpoint
This commit is contained in:
parent
4060851340
commit
1a9f7b6c2b
1 changed files with 11 additions and 0 deletions
11
src/controllers/00-config-controller.ts
Normal file
11
src/controllers/00-config-controller.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { Controller, Get, Route, Tags } from "tsoa";
|
||||
import config from "../config.json";
|
||||
|
||||
@Route("api")
|
||||
@Tags("Config")
|
||||
export class ConfigController extends Controller {
|
||||
@Get()
|
||||
public getConfig() {
|
||||
return config;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue