feat: implement LMS core (CMS, Courses, Enrollment, Progress, Auth) (Admin + API)
Build & Push Docker Image (Backend) / build (push) Successful in 54s
Build & Push Docker Image (Backend) / build (push) Successful in 54s
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
def auto_register(router, viewsets: dict):
|
||||
"""
|
||||
viewsets = {
|
||||
"articles": ArticleViewSet,
|
||||
"courses": CourseViewSet,
|
||||
}
|
||||
"""
|
||||
for prefix, viewset in viewsets.items():
|
||||
router.register(prefix, viewset, basename=prefix)
|
||||
Reference in New Issue
Block a user