Spaces:
Running
Running
from django.contrib import admin | |
from django.urls import path, include | |
from rest_framework import routers | |
from drf_spectacular.views import SpectacularSwaggerView, SpectacularAPIView | |
from _antigos.resumos.views import ( | |
ResumoSimplesCursorView, | |
) # Não sei por quê, mas se remover esta importação, o endpoint de gerar_documentos para de funcionar | |
router = routers.DefaultRouter() | |
# router.register("endpoint-teste", EndpointTesteViewSet, basename="Basename do endpoint-teste") | |
config_urls = [ | |
path("api/schema/", SpectacularAPIView.as_view(), name="schema"), | |
path( | |
"swagger/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui" | |
), | |
path("admin/", admin.site.urls), | |
path("", include(router.urls)), | |
] | |
urlpatterns = config_urls + [ | |
path("", include("gerar_documento.urls")), | |
path("", include("ragas_api.urls")), | |
path("", include("modelos_usuarios.urls")), | |
] | |