backend/config/api_router.py

11 lines
300 B
Python
Raw Normal View History

2023-05-21 13:37:21 +03:00
from rest_framework.routers import DefaultRouter
2023-05-21 17:13:16 +03:00
from passfinder.recomendations.api.views import TinderView, PersonalRecommendation
2023-05-21 13:37:21 +03:00
router = DefaultRouter()
router.register('tinder', TinderView)
2023-05-21 17:13:16 +03:00
router.register("recommendations", PersonalRecommendation)
2023-05-21 13:37:21 +03:00
2023-05-18 20:25:22 +03:00
app_name = "api"
2023-05-21 13:37:21 +03:00
urlpatterns = router.urls