|
|
@@ -44,8 +44,9 @@ export function createRouter(apiClient: APIClient, moduleDir: string) {
|
|
|
api.route('/messages', createMessagesRoutes(withAuth))
|
|
|
api.route('/migrations', createMigrationsRoutes(withAuth))
|
|
|
api.route('/home', createHomeRoutes(withAuth))
|
|
|
-
|
|
|
+
|
|
|
api.route('/classroom', createClassRoomRoutes(withAuth)) // 添加课堂路由
|
|
|
+
|
|
|
|
|
|
// 注册API路由到主路由器
|
|
|
router.route('/api', api)
|