show geometries in editor… introducing the editor API
This commit is contained in:
parent
8c4540c656
commit
46dc1627e1
10 changed files with 167 additions and 73 deletions
|
@ -7,6 +7,7 @@ from rest_framework.generics import GenericAPIView
|
|||
from rest_framework.response import Response
|
||||
from rest_framework.routers import SimpleRouter
|
||||
|
||||
from c3nav.editor.api import EditorViewSet
|
||||
from c3nav.mapdata.api import (AreaViewSet, BuildingViewSet, DoorViewSet, HoleViewSet, LineObstacleViewSet,
|
||||
LocationGroupViewSet, LocationViewSet, ObstacleViewSet, PointViewSet, SectionViewSet,
|
||||
SourceViewSet, SpaceViewSet, StairViewSet)
|
||||
|
@ -27,6 +28,8 @@ router.register(r'sources', SourceViewSet)
|
|||
router.register(r'locations', LocationViewSet)
|
||||
router.register(r'locationgroups', LocationGroupViewSet)
|
||||
|
||||
router.register(r'editor', EditorViewSet, base_name='editor')
|
||||
|
||||
|
||||
class APIRoot(GenericAPIView):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue