2024-02-06 15:12:32 +03:00
|
|
|
from fastfood.app import create_app
|
2024-02-05 23:14:23 +03:00
|
|
|
|
2024-02-06 15:12:32 +03:00
|
|
|
app = create_app()
|
2024-02-05 23:14:23 +03:00
|
|
|
|
|
|
|
|
2024-02-06 15:12:32 +03:00
|
|
|
def reverse(loc: str, **kwargs) -> str:
|
2024-02-05 23:14:23 +03:00
|
|
|
|
2024-02-06 15:12:32 +03:00
|
|
|
url = app.url_path_for(loc, **kwargs)
|
|
|
|
return url
|