luanpoppe
feat: adicionando possibilidade de enviar arquivo de PDF
9717e5b
raw
history blame
476 Bytes
from django.contrib import admin
from django.urls import path, include
from rest_framework import routers
from endpoint_teste.views import EndpointTesteViewSet, getTeste, getPDF
router = routers.DefaultRouter()
# router.register("endpoint-teste", EndpointTesteViewSet, basename="Basename do endpoint-teste")
urlpatterns = [
path("admin/", admin.site.urls),
path('', include(router.urls)),
path("teste", getTeste),
path('pdf', getPDF, name='upload-pdf')
]