-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathurls.py
More file actions
25 lines (19 loc) · 872 Bytes
/
Copy pathurls.py
File metadata and controls
25 lines (19 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from django.conf.urls import url, include
from scriptus_write.views import html
from scriptus_write.views import rest
from rest_framework import routers
router = routers.DefaultRouter()
router.register(r'users', rest.UserViewSet)
router.register(r'groups', rest.GroupViewSet)
router.register(r'scenes', rest.SceneViewSet)
router.register(r'timeframes', rest.TimeFrameViewSet)
router.register(r'characters', rest.CharacterViewSet)
router.register(r'genders', rest.GenderViewSet)
urlpatterns = [
url(r'^$', html.index, name='index'),
url(r'^characters/', html.characters, name='characters'),
url(r'^import_os/', html.import_ostorybook, name='import_osb'),
url(r'^storyboard/', html.show_storyboard, name='show_storyboard'),
url(r'^rest/', include(router.urls)),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
]