Spaces:
Sleeping
Sleeping
| 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'), | |
| ] | |