|
|
@@ -0,0 +1,38 @@
|
|
|
+<?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('menuList', 'Api\MiddleGroundController@menuList');
|
|
|
+
|
|
|
+ //管理员
|
|
|
+ $route->any('employeeList', 'Api\MiddleGroundController@employeeList');
|
|
|
+ $route->any('employeeEdit', 'Api\MiddleGroundController@employeeEdit');
|
|
|
+});
|
|
|
+
|