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

18 lines
667 B
Python
Raw Normal View History

2023-07-15 17:46:19 +03:00
''' 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('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),
path('', include(rsform_router.urls)),
]