<reponame>diegocostacmp/gestao_rh<filename>apps/departamento/urls.py
from django.urls import path
from .views import (
    DepartamentoList,
    DepartamentoCreate,
    DepartamentoUpdate,
    DepartamentoDelete,
)

urlpatterns = [
    path("list", DepartamentoList.as_view(), name="list_departamento"),
    path("novo/", DepartamentoCreate.as_view(), name="create_departamento"),
    path("editar/<int:pk>/", DepartamentoUpdate.as_view(), name="update_departamento"),
    path("deletar/<int:pk>/", DepartamentoDelete.as_view(), name="delete_departamento"),
]

from django.urls import path
from .views import (
    DepartamentoList,
    DepartamentoCreate,
    DepartamentoUpdate,
    DepartamentoDelete,
)

urlpatterns = [
    path("list", DepartamentoList.as_view(), name="list_departamento"),
    path("novo/", DepartamentoCreate.as_view(), name="create_departamento"),
    path("editar/<int:pk>/", DepartamentoUpdate.as_view(), name="update_departamento"),
    path("deletar/<int:pk>/", DepartamentoDelete.as_view(), name="delete_departamento"),
]