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 = [
|
2023-08-01 20:14:03 +03:00
|
|
|
path('library/', views.LibraryView.as_view(), name='library'),
|
2023-07-24 22:34:03 +03:00
|
|
|
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)),
|
|
|
|
]
|