ConceptPortal-public/rsconcept/backend/apps/rsform/urls.py
2023-08-01 20:14:03 +03:00

19 lines
734 B
Python

''' Routing for rsform api '''
from django.urls import path, include
from rest_framework import routers
from . import views
rsform_router = routers.SimpleRouter()
rsform_router.register(r'rsforms', views.RSFormViewSet)
urlpatterns = [
path('library/', views.LibraryView.as_view(), name='library'),
path('constituents/<int:pk>/', views.ConstituentAPIView.as_view(), name='constituenta-detail'),
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),
path('', include(rsform_router.urls)),
]