mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
allow opening shared recipes and redirect old urls
This commit is contained in:
@@ -101,6 +101,10 @@ urlpatterns = [
|
||||
path('edit/storage/<int:pk>/', edit.edit_storage, name='edit_storage'),
|
||||
path('delete/recipe-source/<int:pk>/', delete.delete_recipe_source, name='delete_recipe_source'),
|
||||
|
||||
# Tandoor v1 redirects
|
||||
path('view/recipe/<int:pk>', views.redirect_recipe_view, name='redirect_recipe_view'),
|
||||
path('view/recipe/<int:pk>/<slug:share>', views.redirect_recipe_share_view, name='redirect_recipe_share_view'),
|
||||
|
||||
# TODO move to generic "new" view
|
||||
path('data/sync', data.sync, name='data_sync'),
|
||||
path('data/batch/edit', data.batch_edit, name='data_batch_edit'),
|
||||
|
||||
Reference in New Issue
Block a user