Adicionar Rotas de Event e User

parent 5e8da362
from rest_framework import routers
from rest_framework_mongoengine import routers
routers.SimpleRouter()
from eventos.core.views import EventViewSet, UserViewSet
router = routers.SimpleRouter()
router.register("user", UserViewSet)
router.register("event", EventViewSet)
from django.contrib import admin
from django.urls import path
from django.urls import include, path
from drf_yasg import openapi
from drf_yasg.views import get_schema_view
# from eventos.core.router import router as core_router
from eventos.core.router import router as core_router
schema_view = get_schema_view(openapi.Info(title="Eventos", default_version="v1"), public=True)
urlpatterns = [
# path("", include(core_router.urls)),
path("", include(core_router.urls)),
path("admin/", admin.site.urls),
path("swagger/", schema_view.with_ui()),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment