Spaces:
Sleeping
Sleeping
File size: 1,107 Bytes
bd98c1d 3bd1ac2 3ab7fe5 3bd1ac2 bd98c1d 3bd1ac2 db2cacc 3bd1ac2 db2cacc 3bd1ac2 db2cacc 3bd1ac2 db2cacc 3ab7fe5 bd98c1d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
from django.urls import path
from .views import home_page, search_hierarchy, refresh_author_db_view, domain_list, domain_detail
from .views import field_list, field_detail, subfield_list, subfield_detail
from .views import topic_list, topic_detail, author_detail, search_author
urlpatterns = [
path('', home_page, name='home'),
path("api/search/", search_hierarchy, name="search-hierarchy"),
path("refresh_author_db", refresh_author_db_view, name="refresh-author-db"),
path('domain/', domain_list, name='domain_list'),
path('domain/<int:pk>/', domain_detail, name='domain_detail'),
path('field/', field_list, name='field_list'),
path('field/<int:pk>/', field_detail, name='field_detail'),
path('subfield/', subfield_list, name='subfield_list'),
path('subfield/<int:pk>/', subfield_detail, name='subfield_detail'),
path('topic/', topic_list, name='topic_list'),
path('topic/<str:pk>/', topic_detail, name='topic_detail'),
path('author/<str:pk>/', author_detail, name='author_detail'),
path('search_author/', search_author, name='search_author'),
]
|