from django.urls import path, include
from rest_framework import routers
from django.conf.urls import url
from app.businesslayer.company.views import AdminCompanyViewSet
from app.businesslayer.department.views import AdminDepartmentViewSet
from app.businesslayer.user_type.views import UserTypeViewSet

router = routers.DefaultRouter()
router.register(r'companies', AdminCompanyViewSet)
router.register(r'departments', AdminDepartmentViewSet)
# router.register(r'user-types', UserTypeViewSet)

urlpatterns = [
    path('', include(router.urls)),
    url(r'^user-types/$', UserTypeViewSet.as_view(), name="user-types"),
]
