mamweb/treenode/routers.py

16 lines
666 B
Python
Raw Normal View History

2020-09-03 23:02:28 +02:00
from rest_framework import routers
2021-11-07 10:25:34 +01:00
from treenode import viewsets as vs
2020-09-03 23:02:28 +02:00
router = routers.DefaultRouter()
router.register(r'ulohavzoraknode', vs.UlohaVzorakNodeViewSet,basename='ulohavzoraknode')
2020-12-22 22:29:15 +01:00
router.register(r'reseninode', vs.ReseniNodeViewSet,basename='reseninode')
router.register(r'text', vs.TextViewSet)
router.register(r'textnode', vs.TextNodeViewSet)
router.register(r'castnode', vs.CastNodeViewSet)
router.register(r'problem', vs.ProblemViewSet, basename='problem')
router.register(r'uloha', vs.UlohaViewSet, basename='uloha')
2020-12-22 22:29:15 +01:00
router.register(r'reseni', vs.ReseniViewSet, basename='reseni')
router.register(r'ulohazadaninode', vs.UlohaZadaniNodeViewSet)
2020-09-03 23:02:28 +02:00