mirror of
https://github.com/fspc/workstand.git
synced 2025-04-04 10:03:22 -04:00
14 lines
336 B
Python
14 lines
336 B
Python
from django.conf.urls import url, include
|
|
from rest_framework import routers
|
|
|
|
from bike import views
|
|
from .views import BikesView
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'bikes', views.BikeViewSet)
|
|
|
|
urlpatterns = [
|
|
url(r'^api/', include(router.urls, namespace='api')),
|
|
url(r'^$', BikesView.as_view(), name='bikes')
|
|
]
|