diff options
Diffstat (limited to 'config/base_urls.py')
-rw-r--r-- | config/base_urls.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/base_urls.py b/config/base_urls.py index c881679..775f07d 100644 --- a/config/base_urls.py +++ b/config/base_urls.py @@ -14,6 +14,7 @@ from notes.views import ( NoteViewSet, NotebookViewSet, NoteListView, + TagViewSet, ) # redirect admin as per Adrian holovaty's site @@ -22,6 +23,7 @@ ADMIN_URL = 'https://docs.djangoproject.com/en/dev/ref/contrib/admin/' router = routers.DefaultRouter() router.register(r'notes/notebook', NotebookViewSet, basename="notebook-api") router.register(r'notes', NoteViewSet, basename="notes-api") +router.register(r'tags', TagViewSet, basename="tags-api") urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) @@ -35,7 +37,9 @@ urlpatterns += [ path(r'', include('django_registration.backends.activation.urls')), path(r'', include('django.contrib.auth.urls')), path(r'', NoteListView.as_view(), name='homepage',), - path(r'notes/', include('notes.urls')), + path(r'forum/', include('forum.urls')), + path(r'n/', include('notes.notes_urls')), + path(r'nb/', include('notes.notebook_urls')), path(r'api/v1/', include(router.urls)), path(r'<slug>', PageDetailView.as_view(), name="pages"), #path(r'<path>/<slug>/', PageDetailView.as_view(), name="pages"), |