2023-05-03 14:45:06 +09:00
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
from rest_framework import routers
|
|
|
|
|
|
|
|
from .viewsets import UserViewset
|
|
|
|
|
|
|
|
|
|
|
|
if settings.DEBUG:
|
|
|
|
router = routers.DefaultRouter()
|
|
|
|
else:
|
|
|
|
router = routers.SimpleRouter()
|
|
|
|
|
2023-06-23 02:09:57 +09:00
|
|
|
router.register("", UserViewset)
|
2023-05-03 14:45:06 +09:00
|
|
|
|
2023-05-04 11:03:35 +09:00
|
|
|
urlpatterns = router.urls
|