mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
17 lines
567 B
Python
17 lines
567 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('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)),
|
|
]
|