|
|
|
@ -543,6 +543,25 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: tanksController.deletemotordatarecordsbefore7days,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getTankmotordata", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Tank"],
|
|
|
|
|
description: "This is for Get Tank Motor Data",
|
|
|
|
|
summary: "This is for to Get Tank Motor Data",
|
|
|
|
|
querystring: {
|
|
|
|
|
customerId: {type: 'string'}
|
|
|
|
|
},
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: tanksController.getTankmotordata,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
next();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|