Skip to content

Commit

Permalink
feat(calendar): add endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
injoonH committed Jan 3, 2024
1 parent d9ef2ee commit f79ebf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/calendar/urls.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from django.urls import include, path
from rest_framework.routers import DefaultRouter

from .views.viewsets.calendar import CalendarViewSet, TagViewSet
from .views import EventViewSet, TagViewSet

router = DefaultRouter()
router.register(r"calendars", CalendarViewSet, basename="calendar")
router.register(r"events", EventViewSet, basename="event")
router.register(r"tags", TagViewSet, basename="tag")

urlpatterns = [
path("api/", include(router.urls)),
path("api/calendar/", include(router.urls)),
]

0 comments on commit f79ebf3

Please sign in to comment.