Commit d082f685 authored by Bruno Martin's avatar Bruno Martin
Browse files

use trailing_slash False and simple router

parent b29c2589
......@@ -31,8 +31,7 @@ from courses.classroom.views import (
EventViewSet,
)
router = routers.DefaultRouter()
router = routers.SimpleRouter(trailing_slash=False)
router.register(r'course', CourseViewSet, base_name='course')
router.register(r'course_material', CourseMaterialViewSet, base_name='course_material')
router.register(r'course_material_file', CourseMaterialFileViewSet, base_name='course_material_file')
......
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