123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- <?php
- use Illuminate\Support\Facades\Route;
- use Jiannei\Response\Laravel\Support\Facades\Response;
- Route::get('/home', 'HomeController@index');
- Route::group(['prefix' => 'area', 'namespace' => 'Area'], function () {
-
- Route::get('/', 'AreasController@index');
- Route::get('/info/{id}', 'AreasController@show');
- Route::group(['prefix' => 'project'], function () {
- Route::get('/', 'ProjectsController@index');
- Route::post('/', 'ProjectsController@store');
- Route::get('/info/{id}', 'ProjectsController@show');
- Route::put('/{id}', 'ProjectsController@update');
- Route::delete('/{id}', 'ProjectsController@destroy');
- Route::get('/select-options', 'ProjectsController@SelectOptions');
- Route::get('/areas', 'ProjectsController@project');
- Route::get('/areas-tree', 'ProjectsController@projectTree');
- });
- });
- Route::group(['namespace' => 'Base', 'prefix' => 'base'], function () {
-
- Route::post('/auth/login', 'AuthController@login');
- Route::post('/auth/login-mobile', 'AuthController@mobileLogin');
- Route::post('/auth/mobile-verification-code', 'AuthController@verificationCode');
- Route::post('/auth/weapp/login', 'AuthController@weappLogin');
-
- Route::post('/common/upload', 'ResourceController@upload');
-
- Route::get('/common/enums', 'CommonController@enums');
- Route::post('/settings', 'SettingsController@settings');
- Route::get('/setting', 'SettingsController@setting');
- Route::group([
- 'middleware' => ['auth:api', 'auth.role:user']
- ], function () {
- Route::get('/auth/me', 'AuthController@me');
- Route::put('/auth/me', 'AuthController@update');
- Route::put('/auth/password', 'AuthController@changePassword');
- Route::get('/auth/logout', 'AuthController@logout');
-
- Route::post('/auth/weapp/user-info-sync', 'AuthController@weappUserInfoSync');
- Route::post('/auth/weapp/bind-mobile', 'AuthController@weappBindMobile');
- });
- });
- Route::group(['namespace' => 'CMS', 'prefix' => '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::get('/setting', 'SettingController@show');
- });
- Route::group(['namespace' => 'User', 'prefix' => 'user'], function () {
- Route::get('/', 'UserController@index');
- });
- Route::group(['namespace' => 'Course', 'prefix' => 'course'], function () {
-
- Route::get('/categories', 'CategoryController@index');
-
- Route::get('/', 'CourseController@index');
- Route::get('/random', 'CourseController@random');
- Route::get('/select-options', 'CourseController@selectOptions');
-
- Route::get('/info/{id}', 'CourseController@show');
- Route::group([
- ], function () {
-
- Route::get('/organization', 'OrganizationsController@index');
- Route::get('/organization/info/{slug}', 'OrganizationsController@show');
- Route::get('/organization/teacher', 'OrganizationsController@teacher');
- Route::get('/organization/students', 'OrganizationsController@students');
- Route::post('/organization/student', 'OrganizationsController@storeStudent');
-
- Route::get('/detail/{slug}', 'CourseController@detail');
-
- Route::post('/subscribe', 'CourseController@subscribe');
-
- Route::get('/chapter', 'ChapterController@index');
-
- Route::get('/video', 'VideoController@index');
- Route::get('/video/select-options', 'VideoController@selectOptions');
- Route::get('/video/info/{id}', 'VideoController@viewShow');
- Route::post('/video/look-record', 'VideoController@lookRecord');
- Route::get('/video/detail/{slug}', 'VideoController@detail');
-
- Route::get('/attach', 'AttachController@index');
- Route::get('/attach/download/{slug}', 'AttachController@download');
-
- Route::get('/course-look', 'CourseController@lookCourses');
-
- Route::post('/comment', 'CommentController@store');
- Route::get('/comments', 'CommentController@index');
-
- Route::post('/collection', 'CourseController@collection');
- });
- });
- Route::group(['prefix' => 'qunali', 'namespace' => 'Qunali', 'middleware' => ['auth:api']], function () {
- Route::get('/', 'HomeController@index');
- Route::get('/info', 'HomeController@show');
- Route::get('/good', 'HomeController@good');
- Route::get('/bad', 'HomeController@bad');
- Route::post('/report', 'HomeController@report');
- Route::post('/version', 'HomeController@version');
- Route::post('/point', 'HomeController@storePoint');
- Route::post('/check', 'HomeController@check');
- Route::get('/history', 'HomeController@history');
- Route::get('/back-history', 'HomeController@backHistory');
- Route::get('/record', 'HomeController@record');
- Route::get('/geocoder', 'HomeController@geocoder');
- });
- Route::get('/', function () {
- return Response::success(app()->version());
- });
- Route::group(['prefix' => 'develop'], function () {
-
- Route::get('/t', 'ExampleController@test');
- Route::get('/init', 'ExampleController@init');
- });
|