2019-11-25 12:18:15 +01:00
|
|
|
from django.urls import path
|
2020-01-20 18:36:06 +01:00
|
|
|
from django.conf.urls import url
|
|
|
|
from django.contrib import admin
|
|
|
|
from django.views.generic.base import TemplateView
|
2019-11-25 12:18:15 +01:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
2020-01-20 18:36:06 +01:00
|
|
|
url(r'^$', views.index, name='index'),
|
|
|
|
url(r'^admin/', admin.site.urls),
|
|
|
|
|
|
|
|
path('api/post', views.Post_Handler, name="post"),
|
|
|
|
path('api/category', views.Category_Handler, name="category"),
|
|
|
|
path('api/comment', views.Comments_Handler, name="comment"),
|
|
|
|
path('api/menu', views.Menu_Handler, name="menu"),
|
|
|
|
url(r'^(?P<path>.*)/$', views.index)
|
2019-11-25 12:18:15 +01:00
|
|
|
]
|