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()
|
|
|
|
|
2020-09-12 19:54:27 +02:00
|
|
|
router.register(r'ulohavzoraknode', vs.UlohaVzorakNodeViewSet,basename='ulohavzoraknode')
|
2020-12-22 22:29:15 +01:00
|
|
|
router.register(r'reseninode', vs.ReseniNodeViewSet,basename='reseninode')
|
2020-09-12 09:33:36 +02:00
|
|
|
router.register(r'text', vs.TextViewSet)
|
|
|
|
router.register(r'textnode', vs.TextNodeViewSet)
|
2020-09-12 19:54:27 +02:00
|
|
|
router.register(r'castnode', vs.CastNodeViewSet)
|
2020-11-10 22:06:51 +01:00
|
|
|
router.register(r'problem', vs.ProblemViewSet, basename='problem')
|
2020-11-18 00:24:02 +01:00
|
|
|
router.register(r'uloha', vs.UlohaViewSet, basename='uloha')
|
2020-12-22 22:29:15 +01:00
|
|
|
router.register(r'reseni', vs.ReseniViewSet, basename='reseni')
|
2020-11-18 00:24:02 +01:00
|
|
|
router.register(r'ulohazadaninode', vs.UlohaZadaniNodeViewSet)
|
2020-09-03 23:02:28 +02:00
|
|
|
|