Order api: create order schema
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { fileURLToPath } from "node:url";
|
||||
import path from "path";
|
||||
import { configs } from "./app/configs";
|
||||
import { configs } from "./app/errors/configs";
|
||||
import { accountSwaggerDocs } from "./app/modules/account/account.swagger";
|
||||
import { profileSwaggerDocs } from "./app/modules/profile/profile.swagger";
|
||||
import { orderSwaggerDocs } from "./app/modules/order/order.swagger";
|
||||
import { planSwaggerDocs } from "./app/modules/plan/plan.swagger";
|
||||
import { profileSwaggerDocs } from "./app/modules/profile/profile.swagger";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
@@ -18,8 +19,9 @@ export const swaggerOptions = {
|
||||
},
|
||||
paths: {
|
||||
...accountSwaggerDocs,
|
||||
...profileSwaggerDocs,
|
||||
...planSwaggerDocs,
|
||||
...profileSwaggerDocs,
|
||||
...planSwaggerDocs,
|
||||
...orderSwaggerDocs,
|
||||
},
|
||||
servers:
|
||||
configs.env === "production"
|
||||
|
||||
Reference in New Issue
Block a user