123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <?php
- use Illuminate\Support\Facades\Route;
- use Jiannei\Response\Laravel\Support\Facades\Response;
- Route::get('/home', 'HomeController@index');
- Route::get('/page/home', 'PageController@home');
- Route::get('/page/navigations', 'PageController@navigations');
- Route::get('/page/articles', 'PageController@articles');
- Route::get('/page/article/{id}', 'PageController@article');
- Route::get('/page/navigation-article/{id}', 'PageController@navigationArticle');
- Route::post('/page/settings', 'PageController@settings');
- Route::group(['namespace' => 'CMS'], function () {
-
- Route::post('/common/upload', 'ResourceController@upload');
-
- Route::get('/banner', 'BannersController@index');
-
- Route::get('/category', 'CategoriesController@index');
-
- Route::get('/articles', 'ArticlesController@index');
- Route::get('/article', 'ArticlesController@article');
- Route::get('/article-lists', 'ArticlesController@lists');
- Route::get('/article/{id}', 'ArticlesController@show');
-
- Route::get('/settings', 'SettingController@index');
-
- });
- Route::group(['namespace' => 'Course'], function () {
-
- Route::get('/course/categories', 'CategoryController@index');
-
- Route::get('/courses', 'CourseController@index');
-
- Route::get('/course', 'CourseController@show');
- Route::group([
- 'prefix' => 'course',
- ], function () {
-
- Route::post('/course-subscribe', 'CourseController@subscribe');
-
- Route::get('/course-look', 'CourseController@lookCourses');
-
- Route::post('/comment', 'CommentController@store');
-
- Route::get('/video/{id}', 'VideoController@viewShow');
- Route::post('/video-look-record', 'VideoController@lookRecord');
- Route::get('/attach-download/{id}', 'AttachController@download');
- Route::get('/video/{video_id}/comments', 'CommentController@videoComments');
- Route::get('/course/{course_id}/comments', 'CommentController@courseComments');
- });
- });
- Route::group(['namespace' => 'Note', 'prefix' => 'note'], function () {
- Route::get('index', 'NotesController@index');
- Route::get('show/{id}', 'NotesController@show');
- Route::get('comment', 'CommentsController@index');
- Route::group([
- 'middleware' => 'auth:api'
- ], function () {
- Route::post('store', 'NotesController@store');
- Route::put('update/{id}', 'NotesController@update');
- Route::delete('delete/{id}', 'NotesController@destroy');
- Route::post('good', 'NotesController@good');
- Route::post('comment', 'CommentsController@store');
- Route::delete('comment/{id}', 'CommentsController@destroy');
- Route::post('comment/good', 'CommentsController@good');
- Route::post('comment/answer', 'CommentsController@answer');
- });
- });
- Route::get('/', function () {
- return Response::success(app()->version());
- });
- Route::group(['prefix' => 'develop'], function () {
-
- Route::get('/t', 'ExampleController@test');
- Route::get('/init', 'ExampleController@init');
- });
|