This repository has been archived on 2022-09-23. You can view files and clone it, but cannot push or open issues or pull requests.
webdev/website/snippets/urls.py

12 lines
284 B
Python
Raw Normal View History

from django.urls import path, include
from rest_framework.routers import DefaultRouter
2022-01-08 00:12:34 +01:00
from . import views
2022-01-08 02:26:58 +01:00
router = DefaultRouter()
router.register(r'snippets', views.SnippetViewSet)
router.register(r'users', views.UserViewSet)
2022-01-08 00:24:32 +01:00
urlpatterns = [
path('', include(router.urls)),
]