basic api

This commit is contained in:
vabene1111
2018-02-05 11:45:09 +01:00
parent 42aeeb569b
commit 6a93e9d28e
5 changed files with 134 additions and 78 deletions

View File

@ -1,6 +1,6 @@
from django.urls import path
from . import views
from . import views,api
urlpatterns = [
path('', views.index, name='index'),
@ -10,4 +10,5 @@ urlpatterns = [
path('edit_recipe/<int:id>/', views.edit_recipe, name='edit_recipe'),
path('edit_category/<int:id>/', views.edit_category, name='edit_category'),
path('edit_keyword/<int:id>/', views.new_keyword, name='edit_keyword'),
path('api/get_file_link/<int:recipe_id>/', api.get_file_link, name='get_file_link'),
]