|  |  |  | @ -566,25 +566,22 @@ module.exports = function (fastify, opts, next) { | 
			
		
	
		
			
				
					|  |  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |  |          | 
			
		
	
		
			
				
					|  |  |  |  |         fastify.route({ | 
			
		
	
		
			
				
					|  |  |  |  |           method: "POST", | 
			
		
	
		
			
				
					|  |  |  |  |           url: "/api/validateRange", | 
			
		
	
		
			
				
					|  |  |  |  |           schema: { | 
			
		
	
		
			
				
					|  |  |  |  |             tags: ["Tank"], | 
			
		
	
		
			
				
					|  |  |  |  |             description: "Validate tank height range", | 
			
		
	
		
			
				
					|  |  |  |  |             summary: "Validate tank height range", | 
			
		
	
		
			
				
					|  |  |  |  |             body: { | 
			
		
	
		
			
				
					|  |  |  |  |               type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |               properties: { | 
			
		
	
		
			
				
					|  |  |  |  |                 tankhardwareId: { type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |                 hardwareId: { type: "string" } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 | 
			
		
	
		
			
				
					|  |  |  |  |               }, | 
			
		
	
		
			
				
					|  |  |  |  |               required: ["tankhardwareId"] | 
			
		
	
		
			
				
					|  |  |  |  |             method: "GET", | 
			
		
	
		
			
				
					|  |  |  |  |             url: "/api/validateRange/:hardwareId/:tankhardwareId", | 
			
		
	
		
			
				
					|  |  |  |  |             schema: { | 
			
		
	
		
			
				
					|  |  |  |  |                 tags: ["Tank"], | 
			
		
	
		
			
				
					|  |  |  |  |                 description: "Validate tank height range", | 
			
		
	
		
			
				
					|  |  |  |  |                 summary: "Validate tank height range", | 
			
		
	
		
			
				
					|  |  |  |  |                 params: { | 
			
		
	
		
			
				
					|  |  |  |  |                     type: "object", | 
			
		
	
		
			
				
					|  |  |  |  |                     properties: { | 
			
		
	
		
			
				
					|  |  |  |  |                         hardwareId: { type: "string" }, | 
			
		
	
		
			
				
					|  |  |  |  |                         tankhardwareId: { type: "string" } | 
			
		
	
		
			
				
					|  |  |  |  |                     }, | 
			
		
	
		
			
				
					|  |  |  |  |                     required: ["hardwareId", "tankhardwareId"] | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |  |            | 
			
		
	
		
			
				
					|  |  |  |  |           }, | 
			
		
	
		
			
				
					|  |  |  |  |           handler: tanksController.validateTankHeight | 
			
		
	
		
			
				
					|  |  |  |  |             handler: tanksController.validateTankHeight | 
			
		
	
		
			
				
					|  |  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |  |          | 
			
		
	
		
			
				
					|  |  |  |  |         fastify.route({ | 
			
		
	
	
		
			
				
					|  |  |  | 
 |