mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-19 14:04:07 +01:00
17 lines
468 B
Python
17 lines
468 B
Python
from django.urls import path, include
|
|
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from tasks.api import GoogleCalendarEventViewset
|
|
from tasks.tasks.views import TodoViewSet
|
|
from tasks.misc.views import TagViewSet
|
|
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'todo', TodoViewSet)
|
|
router.register(r'tags', TagViewSet)
|
|
router.register(r'calendar-events', GoogleCalendarEventViewset, basename='calendar-events')
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
] |