from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from apps.paperpot.views import (
    lista_paperpot,
    criar_registro_paper,
    editar_registro_paper,
    excluir_registro_paper,
)

urlpatterns = [
    path('lista_paperpot/', lista_paperpot, name='lista_paperpot'),
    path('criar_registro_paper/', criar_registro_paper, name='criar_registro_paper'),
    path('editar_registro_paper/<int:pk>/', editar_registro_paper, name='editar_registro_paper'),
    path('excluir_registro_paper/<int:pk>/', excluir_registro_paper, name='excluir_registro_paper'),
]

if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
