mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-21 22:29:39 +02:00
9 lines
407 B
Text
9 lines
407 B
Text
|
{% 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 %}
|