mirror of
				https://github.com/StefBuwalda/cal_counter.git
				synced 2025-10-30 03:10:00 +00:00 
			
		
		
		
	Move food item routes to user blueprint
Refactored food item related routes from app.py to application/user/routes.py under the user blueprint. Updated template and JS references to use the blueprint route names, improving code organization and modularity.
This commit is contained in:
		| @@ -45,7 +45,7 @@ | ||||
|         await codeReader.decodeFromVideoDevice(selectedDeviceId, videoElement, async (result, err) => { | ||||
|             if (result) { | ||||
|                 const codeText = result.getText(); | ||||
|                 const baseURL = "{{url_for('food_item', barcode='0')}}" | ||||
|                 const baseURL = "{{url_for('user.food_item', barcode='0')}}" | ||||
|                 window.location.href = baseURL.replace("0", encodeURIComponent(codeText)) | ||||
|             } | ||||
|         }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user