@ -56,6 +56,8 @@ module.exports = function (fastify, opts, next) {
price : { type : "string" } ,
price : { type : "string" } ,
// status: {type: "string"}
// status: {type: "string"}
} ,
} ,
} ,
} ,
security : [
security : [
@ -171,6 +173,7 @@ module.exports = function (fastify, opts, next) {
fastify . route ( {
fastify . route ( {
method : "POST" ,
method : "POST" ,
url : "/api/bookingData/:customerId" ,
url : "/api/bookingData/:customerId" ,
@ -544,20 +547,33 @@ module.exports = function (fastify, opts, next) {
} ,
} ,
] ,
] ,
} ,
} ,
// preHandler: [
// fastify.auth([fastify.operatorAuthenticate]),
// validationHandler.validatePhoneFormat,
// ],
preHandler : fastify . auth ( [ fastify . authenticate ] ) ,
preHandler : fastify . auth ( [ fastify . authenticate ] ) ,
handler : tankersController . updatePipelineInfo ,
handler : tankersController . updatePipelineInfo ,
} ) ;
} ) ;
fastify . route ( {
method : "PUT" ,
fastify . get ( "/api/getTanks/status" , {
url : "/api/deleteTanker1/:supplierId" ,
schema : {
schema : {
tags : [ "Supplier" ] ,
tags : [ "Supplier" ] ,
description : "This is for Get Tank Data for status connected" ,
summary : "This is to delete tanker" ,
summary : "This is for to Get Tank Data for status connected " ,
params : {
required : [ "supplierId" ] ,
type : "object" ,
properties : {
supplierId : {
type : "string" ,
description : "supplierId" ,
} ,
} ,
} ,
querystring : {
querystring : {
status : { type : 'string' }
tankerName : { type : 'string' }
} ,
} ,
security : [
security : [
{
{
@ -566,7 +582,7 @@ module.exports = function (fastify, opts, next) {
] ,
] ,
} ,
} ,
preHandler : fastify . auth ( [ fastify . authenticate ] ) ,
preHandler : fastify . auth ( [ fastify . authenticate ] ) ,
handler : tankersController . status ,
handler : tankersController . deleteTankerInfo1 ,
} ) ;
} ) ;
@ -608,8 +624,6 @@ module.exports = function (fastify, opts, next) {
handler : tankersController . connectionStatus
handler : tankersController . connectionStatus
} ) ;
} ) ;
next ( ) ;
next ( ) ;
}
}