|  |  |  | @ -20,17 +20,17 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   fastify.route({ | 
			
		
	
		
			
				
					|  |  |  |  |     method: "POST", | 
			
		
	
		
			
				
					|  |  |  |  |     url: "/api/users/:username", | 
			
		
	
		
			
				
					|  |  |  |  |     url: "/api/users/:customerId", | 
			
		
	
		
			
				
					|  |  |  |  |     schema: { | 
			
		
	
		
			
				
					|  |  |  |  |       description: "To Get user by username", | 
			
		
	
		
			
				
					|  |  |  |  |       description: "To Get user by customerId", | 
			
		
	
		
			
				
					|  |  |  |  |       tags: ["User"], | 
			
		
	
		
			
				
					|  |  |  |  |       summary: "This is for Get a Single User by Username", | 
			
		
	
		
			
				
					|  |  |  |  |       summary: "This is for Get a Single User by customerId", | 
			
		
	
		
			
				
					|  |  |  |  |       params: { | 
			
		
	
		
			
				
					|  |  |  |  |         type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |         properties: { | 
			
		
	
		
			
				
					|  |  |  |  |           username: { | 
			
		
	
		
			
				
					|  |  |  |  |           customerId: { | 
			
		
	
		
			
				
					|  |  |  |  |             type: "string", | 
			
		
	
		
			
				
					|  |  |  |  |             description: "username", | 
			
		
	
		
			
				
					|  |  |  |  |             description: "customerId", | 
			
		
	
		
			
				
					|  |  |  |  |           }, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
	
		
			
				
					|  |  |  | @ -49,13 +49,13 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  |     url: "/api/currentUser", | 
			
		
	
		
			
				
					|  |  |  |  |     schema: { | 
			
		
	
		
			
				
					|  |  |  |  |       tags: ["User"], | 
			
		
	
		
			
				
					|  |  |  |  |       description: "This is for Get Current User by User Name by Post Body", | 
			
		
	
		
			
				
					|  |  |  |  |       description: "This is for Get Current User by customerId by Post Body", | 
			
		
	
		
			
				
					|  |  |  |  |       summary: "This is for Get a Current User.", | 
			
		
	
		
			
				
					|  |  |  |  |       body: { | 
			
		
	
		
			
				
					|  |  |  |  |         type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |         required: ["username"], | 
			
		
	
		
			
				
					|  |  |  |  |         required: ["customerId"], | 
			
		
	
		
			
				
					|  |  |  |  |         properties: { | 
			
		
	
		
			
				
					|  |  |  |  |           username: { type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |           customerId: { type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       security: [ | 
			
		
	
	
		
			
				
					|  |  |  | @ -87,7 +87,7 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  |         properties: { | 
			
		
	
		
			
				
					|  |  |  |  |           userId: { | 
			
		
	
		
			
				
					|  |  |  |  |             type: "string", | 
			
		
	
		
			
				
					|  |  |  |  |             description: "user id", | 
			
		
	
		
			
				
					|  |  |  |  |             description: "userId", | 
			
		
	
		
			
				
					|  |  |  |  |           }, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
	
		
			
				
					|  |  |  | @ -115,7 +115,7 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     preHandler: [ | 
			
		
	
		
			
				
					|  |  |  |  |       fastify.auth([fastify.operatorAuthenticate]), | 
			
		
	
		
			
				
					|  |  |  |  |       validationHandler.validatePhoneFormat, | 
			
		
	
		
			
				
					|  |  |  |  |       //validationHandler.validatePhoneFormat,
 | 
			
		
	
		
			
				
					|  |  |  |  |     ], | 
			
		
	
		
			
				
					|  |  |  |  |     // preHandler: fastify.auth([fastify.authenticate]),
 | 
			
		
	
		
			
				
					|  |  |  |  |     handler: userController.editUserInfo, | 
			
		
	
	
		
			
				
					|  |  |  | @ -265,7 +265,7 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  |       body: { | 
			
		
	
		
			
				
					|  |  |  |  |         type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |         properties: { | 
			
		
	
		
			
				
					|  |  |  |  |           userId: { type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |           customerId: { type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       security: [ | 
			
		
	
	
		
			
				
					|  |  |  | @ -329,7 +329,7 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   fastify.route({ | 
			
		
	
		
			
				
					|  |  |  |  |     method: "PUT", | 
			
		
	
		
			
				
					|  |  |  |  |     url: "/api/update/currentUser/:username", | 
			
		
	
		
			
				
					|  |  |  |  |     url: "/api/update/currentUser/:customerId", | 
			
		
	
		
			
				
					|  |  |  |  |     schema: { | 
			
		
	
		
			
				
					|  |  |  |  |       tags: ["User"], | 
			
		
	
		
			
				
					|  |  |  |  |       summary: "This is for update current user", | 
			
		
	
	
		
			
				
					|  |  |  | 
 |