Spaces:
Running
Running
from django.contrib import admin | |
from django.urls import path, include | |
from rest_framework import routers | |
from endpoint_teste.views import EndpointTesteViewSet | |
from endpoint_teste.views import getTeste | |
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) | |
] | |