|
|
|
@ -31,6 +31,30 @@ fastify.route({
|
|
|
|
|
handler: adminController.adminSignUp,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.put('/api/editAdmin/:customerId', {
|
|
|
|
|
schema: {
|
|
|
|
|
description: "Edit Admin details by CustomerId",
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
summary: "Edit Admin details by CustomerId",
|
|
|
|
|
params: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
customerId: { type: "string" },
|
|
|
|
|
},
|
|
|
|
|
required: ["customerId"],
|
|
|
|
|
},
|
|
|
|
|
body: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
phone: { type: "string" },
|
|
|
|
|
username: { type: "string" },
|
|
|
|
|
picture: { type: "string" },
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handler: adminController.editAdmin,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.post("/api/adminLogin", {
|
|
|
|
|
schema: {
|
|
|
|
|