Newer
Older
GestionHoteleriaApi / apps / user / urls.py
Yesid Madrid on 19 May 2021 483 bytes Rutas
from django.urls import path, include
from rest_framework import routers

from apps.user.views import GenderViewSet, UserViewSet, GroupViewSet, RegionViewSet, RegionGovernViewSet

router = routers.DefaultRouter()
router.register(r'gender', GenderViewSet)
router.register(r'user', UserViewSet)
router.register(r'group', GroupViewSet)
router.register(r'region', RegionViewSet)
router.register(r'regiongovern', RegionGovernViewSet)

urlpatterns = [
    path('', include(router.urls)),
]