ConceptPortal-public/rsconcept/backend/apps/rsform/urls.py

20 lines
824 B
Python
Raw Normal View History

''' Routing: RSForms for conceptual schemas. '''
2023-07-15 17:46:19 +03:00
from django.urls import path, include
from rest_framework import routers
from . import views
2023-08-25 22:51:20 +03:00
library_router = routers.SimpleRouter()
library_router.register('library', views.LibraryViewSet)
library_router.register('rsforms', views.RSFormViewSet)
2023-07-15 17:46:19 +03:00
urlpatterns = [
2023-08-25 22:51:20 +03:00
path('library/active/', views.LibraryActiveView.as_view(), name='library'),
path('constituents/<int:pk>/', views.ConstituentAPIView.as_view(), name='constituenta-detail'),
2023-07-15 17:46:19 +03:00
path('rsforms/import-trs/', views.TrsImportView.as_view()),
path('rsforms/create-detailed/', views.create_rsform),
path('func/parse-expression/', views.parse_expression),
path('func/to-ascii/', views.convert_to_ascii),
path('func/to-math/', views.convert_to_math),
2023-08-25 22:51:20 +03:00
path('', include(library_router.urls)),
2023-07-15 17:46:19 +03:00
]