add testimony api

This commit is contained in:
ItsMalma
2025-12-08 10:49:28 +07:00
parent a5794e9a1e
commit 0887b7c94b
7 changed files with 308 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ import { PartnerMapper } from "@/modules/partner/partner.mapper";
import { StaticController } from "@/modules/static/static.controller";
import { TagController } from "@/modules/tag/tag.controller";
import { TagMapper } from "@/modules/tag/tag.mapper";
import { TestimonyController } from "@/modules/testimony/testimony.controller";
import { TestimonyMapper } from "@/modules/testimony/testimony.mapper";
import { TransportationClassController } from "@/modules/transportation-class/transportation-class.controller";
import { TransportationClassMapper } from "@/modules/transportation-class/transportation-class.mapper";
import { TransportationController } from "@/modules/transportation/transportation.controller";
@@ -100,6 +102,7 @@ export class Application {
);
const adminMapper = new AdminMapper();
const orderMapper = new OrderMapper(packageMapper, partnerMapper);
const testimonyMapper = new TestimonyMapper();
const tagMapper = new TagMapper();
const articleMapper = new ArticleMapper(tagMapper);
@@ -170,6 +173,10 @@ export class Application {
const whatsAppRouter = new WhatsAppController(
this._whatsAppService,
).buildRouter();
const testimonyRouter = new TestimonyController(
testimonyMapper,
this._jwtService,
).buildRouter();
const tagRouter = new TagController(
tagMapper,
this._jwtService,
@@ -196,6 +203,7 @@ export class Application {
this._app.use("/orders", orderRouter);
this._app.use("/statics", staticRouter);
this._app.use("/whatsapp", whatsAppRouter);
this._app.use("/testimonies", testimonyRouter);
this._app.use("/tags", tagRouter);
this._app.use("/articles", articleRouter);
}