urls.py 348 B

12345678910
  1. from django.urls import path, include, re_path
  2. from rest_framework import routers
  3. from.views import RunsUploadView, RunsStatusView
  4. urlpatterns = [
  5. path('upload/runs', RunsStatusView.as_view(),
  6. name='upload runs view'),
  7. re_path(r'^upload/(?P<run_id>[a-f0-9]{32})$', RunsUploadView.as_view(),
  8. name='upload runs view')
  9. ]