You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.4 KiB
37 lines
1.4 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
use think\facade\Route;
|
|
|
|
use app\adminapi\middleware\AdminCheckRole;
|
|
use app\adminapi\middleware\AdminCheckToken;
|
|
use app\adminapi\middleware\AdminLog;
|
|
// USER_CODE_BEGIN -- student_courses
|
|
|
|
Route::group('student_courses', function () {
|
|
|
|
//学员课程列表
|
|
Route::get('student_courses', 'student_courses.StudentCourses/lists');
|
|
//学员课程详情
|
|
Route::get('student_courses/:id', 'student_courses.StudentCourses/info');
|
|
//添加学员课程
|
|
Route::post('student_courses', 'student_courses.StudentCourses/add');
|
|
//编辑学员课程
|
|
Route::put('student_courses/:id', 'student_courses.StudentCourses/edit');
|
|
//删除学员课程
|
|
Route::delete('student_courses/:id', 'student_courses.StudentCourses/del');
|
|
|
|
})->middleware([
|
|
AdminCheckToken::class,
|
|
AdminCheckRole::class,
|
|
AdminLog::class
|
|
]);
|
|
// USER_CODE_END -- student_courses
|
|
|