c_api.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. //伪中台路由
  14. Route::any('login', 'Api\LoginController@cLogin');
  15. Route::group(['middleware'=> ['checkCenterLogin']],function ($route){
  16. $route->any('roleAdd', 'Api\MiddleGroundController@roleAdd');
  17. $route->any('roleEdit', 'Api\MiddleGroundController@roleEdit');
  18. $route->any('roleDel', 'Api\MiddleGroundController@roleDel');
  19. $route->any('roleList', 'Api\MiddleGroundController@roleList');
  20. $route->any('roleDetail', 'Api\MiddleGroundController@roleDetail');
  21. $route->any('roleMenu', 'Api\MiddleGroundController@roleMenu');
  22. //创建公司账号 工时设置 初始化
  23. $route->any('initializationCompany', 'Api\MiddleGroundController@initializationCompany');
  24. //公司列表
  25. $route->any('initializationCompanyList', 'Api\MiddleGroundController@initializationCompanyList');
  26. //公司使用时段授权
  27. $route->any('setUseRange', 'Api\MiddleGroundController@setUseRange');
  28. $route->any('setUseRangeDetail', 'Api\MiddleGroundController@setUseRangeDetail');
  29. //菜单列表 为了设置角色权限用的
  30. $route->any('menuList', 'Api\MiddleGroundController@menuList');
  31. //管理员
  32. $route->any('employeeList', 'Api\MiddleGroundController@employeeList');
  33. $route->any('employeeEdit', 'Api\MiddleGroundController@employeeEdit');
  34. });