urls.py 1.0 KB

123456789101112131415161718192021222324252627
  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'
  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("", views.order_reg, name="order_reg"),
  23. re_path(r'^api/', include(router.urls), name="webservice_running_api"),
  24. ]