mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:38:18 -04:00 
			
		
		
		
	* update docs * use auto-gen routes * dumb deps * remove whitespace * github action to build dev docs container * no cache Co-authored-by: hay-kot <hay-kot@pm.me>
		
			
				
	
	
		
			12 lines
		
	
	
		
			418 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			418 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
| # This Content is Auto Generated for Pytest
 | |
| 
 | |
| 
 | |
| class AppRoutes:
 | |
|     def __init__(self) -> None:
 | |
|         self.prefix = '{{paths.prefix}}'
 | |
| {% for path in paths.static_paths %}
 | |
|         self.{{ path.router_slug }} = "{{path.prefix}}{{ path.route }}"{% endfor %}
 | |
| {% for path in paths.function_paths  %}
 | |
|     def {{path.router_slug}}(self, {{path.var|join(", ")}}):
 | |
|         return f"{self.prefix}{{ path.route }}"
 | |
| {% endfor %} |