backend/config/api_router.py

19 lines
556 B
Python

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from passfinder.recomendations.api.views import TinderView, PersonalRecommendation
from passfinder.users.api.views import UserViewSet
router = DefaultRouter()
router.register('tinder', TinderView)
router.register("recommendations", PersonalRecommendation)
router.register("user", UserViewSet)
app_name = "api"
urlpatterns = [
path("", include("passfinder.events.api.urls")),
path("auth/", include("passfinder.users.api.urls")),
]
urlpatterns += router.urls