luanpoppe
feat: adicionando url.py em cada app e mais refatorações
12b0dd7
raw
history blame contribute delete
408 Bytes
from django.urls import path
from modelos_usuarios.views import (
ListCreateModeloUsuarioView,
CreateUpdateDeleteModeloUsuarioView,
ListModelosPorUsuarioView,
)
urlpatterns = [
path("modelo", ListCreateModeloUsuarioView.as_view()),
path("modelo/<int:pk>", CreateUpdateDeleteModeloUsuarioView.as_view()),
path("usuario/<int:user_id>/modelos", ListModelosPorUsuarioView.as_view()),
]