Merge branch 'develop' of github.com:Frappet/bma-ehr-salary into develop

This commit is contained in:
Kittapath 2024-02-28 11:24:24 +07:00
commit 6856c0c33a
4 changed files with 114 additions and 1 deletions

View file

@ -1,4 +1,6 @@
import { Controller, Get, Post, Put, Delete, Patch, Route, Security, Tags } from "tsoa";
import { Controller, Request, Get, Post, Put, Delete, Patch, Route, Security, Tags, Path } from "tsoa";
import axios from 'axios';
import CallAPI from "../interfaces/call-api";
@Route("/hello")
@Tags("Test")
@ -8,4 +10,18 @@ export class AppController extends Controller {
public async GET() {
return { message: "Hello Salary" };
}
/**
* API Call Org
*
* @summary API Call Org
*
*/
@Get("CallOrg")
public async CallOrg(
@Request() request: any,
) {
const req = await new CallAPI().GetData(request, 'org/profile/salary/gen');
return req;
}
}