add testimony api
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user