Skip to content

Commit

Permalink
moved "frames/" part of the URL from api app to main url
Browse files Browse the repository at this point in the history
  • Loading branch information
thusser committed Nov 13, 2020
1 parent 2f2704a commit 4d44b4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions pyobs_archive/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
from . import views

urlpatterns = [
path('frames/', views.frames_view, name='frames'),
path('frames/<int:frame_id>/', views.frame_view, name='frame'),
path('frames/<int:frame_id>/download/', views.download_view, name='download'),
path('frames/<int:frame_id>/related/', views.related_view, name='related'),
path('frames/<int:frame_id>/headers/', views.headers_view, name='headers'),
path('frames/<int:frame_id>/preview/', views.preview_view, name='preview'),
path('frames/<int:frame_id>/catalog/', views.catalog_view, name='catalog'),
path('frames/<int:frame_id>/delete/', views.delete_view, name='delete'),
path('frames/create/', views.create_view, name='create'),
path('frames/aggregate/', views.aggregate_view, name='options'),
path('frames/zip/', views.zip_view, name='zip')
path('', views.frames_view, name='frames'),
path('<int:frame_id>/', views.frame_view, name='frame'),
path('<int:frame_id>/download/', views.download_view, name='download'),
path('<int:frame_id>/related/', views.related_view, name='related'),
path('<int:frame_id>/headers/', views.headers_view, name='headers'),
path('<int:frame_id>/preview/', views.preview_view, name='preview'),
path('<int:frame_id>/catalog/', views.catalog_view, name='catalog'),
path('<int:frame_id>/delete/', views.delete_view, name='delete'),
path('create/', views.create_view, name='create'),
path('aggregate/', views.aggregate_view, name='options'),
path('zip/', views.zip_view, name='zip')
]
2 changes: 1 addition & 1 deletion pyobs_archive/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

urlpatterns = [
path(root_url, include('pyobs_archive.frontend.urls')),
path(root_url, include('pyobs_archive.api.urls')),
path(root_url + 'frames/', include('pyobs_archive.api.urls')),
path(root_url + 'admin/', admin.site.urls),
path(root_url + 'api-token-auth/', views.obtain_auth_token)
]

0 comments on commit 4d44b4c

Please sign in to comment.