Files
ProFi/employees/urls.py

12 lines
448 B
Python
Raw Normal View History

2025-05-19 17:00:02 +03:00
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import PositionViewSet, DepartmentViewSet, EmployeeViewSet
router = DefaultRouter()
router.register(r"positions", PositionViewSet, basename="position")
router.register(r"departments", DepartmentViewSet, basename="department")
router.register(r"employees", EmployeeViewSet, basename="employee")
urlpatterns = [
path("", include(router.urls)),
]