feat: add config endpoint

This commit is contained in:
Methapon Metanipat 2024-10-07 14:15:13 +07:00
parent 4060851340
commit 1a9f7b6c2b

View 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;
}
}