first commit
This commit is contained in:
20
src/config/api_v1_urls.py
Normal file
20
src/config/api_v1_urls.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""
|
||||
API v1 URL configuration.
|
||||
|
||||
All API endpoints are versioned under /api/v1/
|
||||
"""
|
||||
|
||||
from apps.core.views import BackgroundJobListView, BackgroundJobStatusView
|
||||
from django.urls import include, path
|
||||
|
||||
app_name = "api_v1"
|
||||
|
||||
jobs_urlpatterns = [
|
||||
path("", BackgroundJobListView.as_view(), name="job-list"),
|
||||
path("<str:task_id>/", BackgroundJobStatusView.as_view(), name="job-status"),
|
||||
]
|
||||
|
||||
urlpatterns = [
|
||||
path("users/", include("apps.user.urls")),
|
||||
path("jobs/", include((jobs_urlpatterns, "jobs"))),
|
||||
]
|
||||
Reference in New Issue
Block a user