mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
21 lines
812 B
Python
21 lines
812 B
Python
from django.urls import path
|
|
|
|
from .views import *
|
|
from cookbook.views import api
|
|
|
|
urlpatterns = [
|
|
path('', views.index, name='index'),
|
|
path('new/recipe', views.new_recipe, name='new_recipe'),
|
|
path('new/category', views.new_category, name='new_category'),
|
|
path('new/keyword', views.new_keyword, name='new_keyword'),
|
|
|
|
path('edit/recipe/<int:recipe_id>/', views.edit_recipe, name='edit_recipe'),
|
|
path('edit/category/<int:category_id>/', views.edit_category, name='edit_category'),
|
|
path('edit/keyword/<int:keyword_id>/', views.new_keyword, name='edit_keyword'),
|
|
|
|
path('batch/import', batch.batch_import, name='batch_import'),
|
|
path('batch/category', batch.batch_edit, name='batch_edit'),
|
|
|
|
path('api/get_file_link/<int:recipe_id>/', api.get_file_link, name='get_file_link'),
|
|
]
|