Commit fcd20dbb authored by Daniel W Bond's avatar Daniel W Bond
Browse files

linked in major api view

parent 682adece
......@@ -5,12 +5,13 @@ from django.conf.urls import patterns, include, url
# third party imports
from rest_framework.routers import DefaultRouter
# imports from your apps
from .views import BuildingAPI, FloorAPI, RoomAPI
from .views import BuildingAPI, FloorAPI, RoomAPI, MajorAPI
router = DefaultRouter()
router.register(r'buildings', BuildingAPI)
router.register(r'floors', FloorAPI)
router.register(r'rooms', RoomAPI)
router.register(r'majors', MajorAPI)
urlpatterns = router.urls
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment