| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- use Illuminate\Http\Request;
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
- //伪中台路由
- Route::any('login', 'Api\LoginController@cLogin');
- Route::group(['middleware'=> ['checkCenterLogin']],function ($route){
- $route->any('roleAdd', 'Api\MiddleGroundController@roleAdd');
- $route->any('roleEdit', 'Api\MiddleGroundController@roleEdit');
- $route->any('roleDel', 'Api\MiddleGroundController@roleDel');
- $route->any('roleList', 'Api\MiddleGroundController@roleList');
- $route->any('roleDetail', 'Api\MiddleGroundController@roleDetail');
- $route->any('roleMenu', 'Api\MiddleGroundController@roleMenu');
- //创建公司账号 工时设置 初始化
- $route->any('initializationCompany', 'Api\MiddleGroundController@initializationCompany');
- //公司列表
- $route->any('initializationCompanyList', 'Api\MiddleGroundController@initializationCompanyList');
- //公司使用时段授权
- $route->any('setUseRange', 'Api\MiddleGroundController@setUseRange');
- $route->any('setUseRangeDetail', 'Api\MiddleGroundController@setUseRangeDetail');
- //菜单列表 为了设置角色权限用的
- $route->any('menuList', 'Api\MiddleGroundController@menuList');
- //管理员
- $route->any('employeeList', 'Api\MiddleGroundController@employeeList');
- $route->any('employeeEdit', 'Api\MiddleGroundController@employeeEdit');
- });
|