mirror of
https://github.com/leaders-of-digital-9-task/backend.git
synced 2024-11-14 21:46:35 +03:00
16 lines
319 B
Python
16 lines
319 B
Python
|
from django.conf import settings
|
||
|
from rest_framework.routers import DefaultRouter, SimpleRouter
|
||
|
|
||
|
from image_markuper.users.api.views import UserViewSet
|
||
|
|
||
|
if settings.DEBUG:
|
||
|
router = DefaultRouter()
|
||
|
else:
|
||
|
router = SimpleRouter()
|
||
|
|
||
|
router.register("users", UserViewSet)
|
||
|
|
||
|
|
||
|
app_name = "api"
|
||
|
urlpatterns = router.urls
|