|
@@ -40,7 +40,7 @@ class RouteServiceProvider extends ServiceProvider |
|
@@ -40,7 +40,7 @@ class RouteServiceProvider extends ServiceProvider |
|
40
|
//预定义两个端的API路由
|
40
|
//预定义两个端的API路由
|
|
41
|
$this->mapAsideRoute();
|
41
|
$this->mapAsideRoute();
|
|
42
|
$this->mapBsideRoute();
|
42
|
$this->mapBsideRoute();
|
|
43
|
-
|
43
|
+ $this->mapWechatRoute();
|
|
44
|
// 暂时无用
|
44
|
// 暂时无用
|
|
45
|
$this->routes(function () {
|
45
|
$this->routes(function () {
|
|
46
|
Route::prefix('api')
|
46
|
Route::prefix('api')
|
|
@@ -74,7 +74,14 @@ class RouteServiceProvider extends ServiceProvider |
|
@@ -74,7 +74,14 @@ class RouteServiceProvider extends ServiceProvider |
|
74
|
->namespace($this->namespace . '\Bside')
|
74
|
->namespace($this->namespace . '\Bside')
|
|
75
|
->group(base_path('routes/bside.php'));
|
75
|
->group(base_path('routes/bside.php'));
|
|
76
|
}
|
76
|
}
|
|
77
|
-
|
77
|
+ /**
|
|
|
|
78
|
+ *B端API路由
|
|
|
|
79
|
+ * @return void
|
|
|
|
80
|
+ */
|
|
|
|
81
|
+ protected function mapWechatRoute(){
|
|
|
|
82
|
+ Route::namespace($this->namespace . '\wechat')
|
|
|
|
83
|
+ ->group(base_path('routes/wechat.php'));
|
|
|
|
84
|
+ }
|
|
78
|
/**
|
85
|
/**
|
|
79
|
* Configure the rate limiters for the application.
|
86
|
* Configure the rate limiters for the application.
|
|
80
|
*
|
87
|
*
|