|
@ -22,9 +22,19 @@ from rest_framework import routers |
|
|
from rest_framework_jwt.views import obtain_jwt_token |
|
|
from rest_framework_jwt.views import obtain_jwt_token |
|
|
|
|
|
|
|
|
import registration |
|
|
import registration |
|
|
|
|
|
import bike |
|
|
|
|
|
from bike import urls as bike_urls |
|
|
from core import urls as core_urls |
|
|
from core import urls as core_urls |
|
|
from registration import urls as member_urls |
|
|
from registration import urls as member_urls |
|
|
from bike import urls as bike_urls |
|
|
|
|
|
|
|
|
routeLists = [ |
|
|
|
|
|
bike.urls.apiRoutes, |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
router = routers.DefaultRouter() |
|
|
|
|
|
for routeList in routeLists: |
|
|
|
|
|
for route in routeList: |
|
|
|
|
|
router.register(route[0], route[1]) |
|
|
|
|
|
|
|
|
routeLists = [ |
|
|
routeLists = [ |
|
|
registration.urls.apiRoutes, |
|
|
registration.urls.apiRoutes, |
|
|