chore: add tsoa tag
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 8s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 8s
This commit is contained in:
parent
e92870602d
commit
54dba11dc4
3 changed files with 7 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ import createReport from "docx-templates";
|
|||
import ThaiBahtText from "thai-baht-text";
|
||||
import { District, Province, SubDistrict } from "@prisma/client";
|
||||
import { Readable } from "node:stream";
|
||||
import { Controller, Get, Path, Query, Route } from "tsoa";
|
||||
import { Controller, Get, Path, Query, Route, Tags } from "tsoa";
|
||||
import prisma from "../db";
|
||||
import { notFoundError } from "../utils/error";
|
||||
import HttpError from "../interfaces/http-error";
|
||||
|
|
@ -62,6 +62,7 @@ const quotationData = (id: string) =>
|
|||
});
|
||||
|
||||
@Route("api/v1/doc-template")
|
||||
@Tags("Document Template")
|
||||
export class DocTemplateController extends Controller {
|
||||
@Get()
|
||||
async getTemplate() {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
RequestWorkStatus,
|
||||
User,
|
||||
} from "@prisma/client";
|
||||
import { Controller, Get, Query, Request, Route, Security } from "tsoa";
|
||||
import { Controller, Get, Query, Request, Route, Security, Tags } from "tsoa";
|
||||
import prisma from "../db";
|
||||
import { createPermCondition } from "../services/permission";
|
||||
import { RequestWithUser } from "../interfaces/user";
|
||||
|
|
@ -16,6 +16,7 @@ const permissionCondCompany = createPermCondition((_) => true);
|
|||
|
||||
@Route("/api/v1/report")
|
||||
@Security("keycloak")
|
||||
@Tags("Report")
|
||||
export class StatsController extends Controller {
|
||||
@Get("quotation")
|
||||
async quotationReport(
|
||||
|
|
|
|||
|
|
@ -53,7 +53,9 @@
|
|||
{ "name": "Task Order" },
|
||||
{ "name": "User Task Order" },
|
||||
{ "name": "Credit Note" },
|
||||
{ "name": "Debit Note" }
|
||||
{ "name": "Debit Note" },
|
||||
{ "name": "Report" },
|
||||
{ "name": "Document Template" }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue