Commit b7602474 by jaymehta

.

1 parent d13d5fe0
......@@ -66,14 +66,18 @@
"type": "string"
},
"brandLogo": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
]
},
"uniqueVendorId": {
"type": "string"
}
}
}
......@@ -227,6 +227,15 @@ module.exports = createCoreController("api::vendor.vendor", () => ({
main().catch(console.error);
},
async addVendorId(ctx) {
try {
// console.log(ctx.request.body)
} catch (error) {
}
},
async removedirectory(ctx) {
// directory path
const dir = `${__dirname}/../../../../../zango-frontend`;
......
......@@ -34,6 +34,15 @@ const routes = {
}
},
{
method: "POST",
path: "/vendor/updateVendorId",
handler: "api::vendor.vendor.addVendorId",
config: {
// some configuration...
}
},
],
};
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!