Commit b7602474 by jaymehta

.

1 parent d13d5fe0
...@@ -66,14 +66,18 @@ ...@@ -66,14 +66,18 @@
"type": "string" "type": "string"
}, },
"brandLogo": { "brandLogo": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [ "allowedTypes": [
"images", "images",
"files", "files",
"videos", "videos",
"audios" "audios"
], ]
"type": "media", },
"multiple": false "uniqueVendorId": {
"type": "string"
} }
} }
} }
...@@ -227,6 +227,15 @@ module.exports = createCoreController("api::vendor.vendor", () => ({ ...@@ -227,6 +227,15 @@ module.exports = createCoreController("api::vendor.vendor", () => ({
main().catch(console.error); main().catch(console.error);
}, },
async addVendorId(ctx) {
try {
// console.log(ctx.request.body)
} catch (error) {
}
},
async removedirectory(ctx) { async removedirectory(ctx) {
// directory path // directory path
const dir = `${__dirname}/../../../../../zango-frontend`; const dir = `${__dirname}/../../../../../zango-frontend`;
......
...@@ -34,6 +34,15 @@ const routes = { ...@@ -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!