urls.py 1.1 KB

1234567891011121314151617181920212223242526272829
  1. from webservice_running.apiviews import *
  2. from rest_framework import routers
  3. from django.urls import path, include, re_path
  4. from . import views
  5. app_name = 'webservice_running'
  6. router = routers.DefaultRouter()
  7. router.register(r'event', EventMVS)
  8. router.register(r'sportsman', SportsmanMVS)
  9. router.register(r'achievement', AchievementMVS)
  10. router.register(r'achievements', AchievementsMVS)
  11. router.register(r'blocked_sportsman', BlockedSportsmanMVS)
  12. router.register(r'browse_event', BrowseEventMVS)
  13. router.register(r'browse_sportsman', BrowseSportsmanMVS)
  14. router.register(r'event_gallery', EventGalleryMVS)
  15. router.register(r'participant', ParticipantMVS)
  16. router.register(r'saved_event', SavedEventMVS)
  17. router.register(r'saved_sportsman', SavedSportsmanMVS)
  18. router.register(r'sport_preferrence', SportPreferrenceMVS)
  19. router.register(r'sport', SportMVS)
  20. router.register(r'sportsman_gallery', SportsmanGalleryMVS)
  21. urlpatterns = [
  22. path('order_reg/', views.order_reg, name="order_reg"),
  23. path('', views.registration, name="registration"),
  24. path('api/', include(router.urls), name="webservice_running_api"),
  25. ]