chore: add tsoa tag
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 8s

This commit is contained in:
Methapon2001 2025-03-04 14:37:13 +07:00
parent e92870602d
commit 54dba11dc4
3 changed files with 7 additions and 3 deletions

View file

@ -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() {

View file

@ -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(

View file

@ -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" }
]
}
},