urls.py 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. from sports.apiviews import *
  2. from rest_framework import routers
  3. from django.urls import path, include
  4. router = routers.DefaultRouter()
  5. router.register(r'sportsman', SportsmanMVS)
  6. router.register(r'sport', SportMVS)
  7. router.register(r'event', EventMVS)
  8. router.register(r'sportpref', SportPreferrenceMVS)
  9. router.register(r'eventgallery', EventGalleryMVS)
  10. router.register(r'sportsmangallery', SportsmanGalleryMVS)
  11. router.register(r'achievements', AchievementsMVS)
  12. router.register(r'sportsman_achivements/', AchievementMVS)
  13. router.register(r'saved_events', SavedEventMVS)
  14. router.register(r'saved_sport', SavedSportsmanMVS)
  15. router.register(r'blocked_sportsmen', BlockedSportsmanMVS)
  16. router.register(r'participants', ParticipantMVS)
  17. router.register(r'browsed_events', BrowseEventMVS)
  18. router.register(r'browsed_sportsman', BrowseSportsmanMVS)
  19. # router.register(r'documents', DocumentsMVS)
  20. # router.register(r'orders', OrdersMVS)
  21. # router.register(r'permissions', PermissionsMVS)
  22. # router.register(r'provider', ProviderMVS)
  23. # router.register(r'relationship', RelationshipMVS)
  24. # router.register(r'resource', ResourceMVS)
  25. # router.register(r'service', ServiceMVS)
  26. # router.register(r'servicetype', ServiceTypeMVS)
  27. urlpatterns = [
  28. path('api/', include(router.urls), name="sports"),
  29. ]