mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-02 10:13:35 -05:00 
			
		
		
		
	
		
			
	
	
		
			9 lines
		
	
	
		
			407 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			9 lines
		
	
	
		
			407 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								{% for mod in mods  %}
							 | 
						||
| 
								 | 
							
								class {{mod.name}}Routes:{% for route in mod.routes  %}{% if not route.path_is_func   %}
							 | 
						||
| 
								 | 
							
								    {{route.name_snake}} = "{{ route.py_route }}"{% endif %}{% endfor %}{% for route in mod.routes  %}
							 | 
						||
| 
								 | 
							
								{% if route.path_is_func   %}
							 | 
						||
| 
								 | 
							
								    @staticmethod
							 | 
						||
| 
								 | 
							
								    def {{route.name_snake}}({{ route.path_vars|join(", ") }}):
							 | 
						||
| 
								 | 
							
								        return f"{{route.py_route}}"       
							 | 
						||
| 
								 | 
							
								{% endif %}{% endfor %}
							 | 
						||
| 
								 | 
							
								{% endfor %}
							 |