hrms-api-org/src/controllers/MyController.ts
2024-10-29 14:05:52 +07:00

20 lines
566 B
TypeScript

import { profile } from "console";
import { Controller, Get, Post, Query, Route, Security, Tags } from "tsoa";
import { calculateGovAge } from "../interfaces/utils";
import HttpSuccess from "../interfaces/http-success";
@Route("/hello")
@Tags("Test")
@Security("bearerAuth")
export class AppController extends Controller {
@Get()
public async GET() {
return { message: "Hello World 1" };
}
// @Post()
// public async Post(@Query() profileId: string) {
// const result = calculateGovAge(profileId);
// return new HttpSuccess(result);
// }
}