mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-07-05 23:51:03 +02:00
026fb6e162
without this changes the API root only displayed the URLs for the backup app. Now it shows all URLs.
12 lines
370 B
Python
12 lines
370 B
Python
from rest_framework import routers
|
|
|
|
from . import views
|
|
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'months', views.MonthViewSet)
|
|
router.register(r'weekdays', views.WeekdayViewSet)
|
|
router.register(r'days-of-month', views.DayOfMonthViewSet)
|
|
router.register(r'hours-in-day', views.HoursInDayViewSet)
|
|
router.register(r'minutes-in-hour', views.MinutesInHourViewSet)
|