fixing path
This commit is contained in:
parent
400b9c0b28
commit
ba612f1b2b
12 changed files with 325 additions and 723 deletions
|
|
@ -15,12 +15,12 @@ import HttpStatusCode from "../interfaces/http-status";
|
|||
import { RequestWithUser } from "../middlewares/user";
|
||||
import { findEndDate } from "../interfaces/utils";
|
||||
|
||||
@Route("api/v1/calculate")
|
||||
@Route("api/v1/probation/calculate")
|
||||
@Tags("ฟอร์มมอบหมายงาน")
|
||||
@Security("bearerAuth")
|
||||
@Response(
|
||||
HttpStatusCode.INTERNAL_SERVER_ERROR,
|
||||
"เกิดข้อผิดพลาด ไม่สามารถแสดงรายการได้ กรุณาลองใหม่ในภายหลัง"
|
||||
"เกิดข้อผิดพลาด ไม่สามารถแสดงรายการได้ กรุณาลองใหม่ในภายหลัง",
|
||||
)
|
||||
@SuccessResponse(HttpStatusCode.OK, "สำเร็จ")
|
||||
export class CalculateController extends Controller {
|
||||
|
|
@ -37,7 +37,7 @@ export class CalculateController extends Controller {
|
|||
month: number;
|
||||
start_date: Date;
|
||||
},
|
||||
@Request() request: RequestWithUser
|
||||
@Request() request: RequestWithUser,
|
||||
) {
|
||||
const { month, start_date } = requestBody;
|
||||
const finish_date = findEndDate(month, start_date);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue