|
@@ -0,0 +1,38 @@
|
|
|
+"""pycs_backend URL Configuration
|
|
|
+
|
|
|
+The `urlpatterns` list routes URLs to views. For more information please see:
|
|
|
+ https://docs.djangoproject.com/en/3.2/topics/http/urls/
|
|
|
+Examples:
|
|
|
+Function views
|
|
|
+ 1. Add an import: from my_app import views
|
|
|
+ 2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
|
+Class-based views
|
|
|
+ 1. Add an import: from other_app.views import Home
|
|
|
+ 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
|
+Including another URLconf
|
|
|
+ 1. Import the include() function: from django.urls import include, path
|
|
|
+ 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
|
+"""
|
|
|
+from django.urls import path
|
|
|
+from django.urls import include
|
|
|
+from pycs_api import views
|
|
|
+
|
|
|
+urlpatterns = [
|
|
|
+ path('projects/',
|
|
|
+ views.ProjectView.as_view(), name="projects"),
|
|
|
+
|
|
|
+ path('projects/<int:project_id>/remove',
|
|
|
+ views.ProjectView.remove, name="remove_project"),
|
|
|
+
|
|
|
+ path('projects/<int:project_id>/name',
|
|
|
+ views.ProjectView.edit_name, name="edit_project_name"),
|
|
|
+
|
|
|
+ path('projects/<int:project_id>/description',
|
|
|
+ views.ProjectView.edit_description, name="edit_project_description"),
|
|
|
+
|
|
|
+ path('projects/<int:project_id>/external_storage',
|
|
|
+ views.ProjectView.run_external_storage, name="execute_external_storage"),
|
|
|
+
|
|
|
+ path('projects/<int:project_id>/label_provider',
|
|
|
+ views.ProjectView.run_label_provider, name="execute_label_provider"),
|
|
|
+]
|