|
@@ -51,11 +51,12 @@ abstract class BaseController
|
|
$this->request = $this->app->request;
|
|
$this->request = $this->app->request;
|
|
$this->request['Accept'] = 'application/json';
|
|
$this->request['Accept'] = 'application/json';
|
|
$route = [
|
|
$route = [
|
|
- '/api/Token/getToken',
|
|
|
|
- '/api/index',
|
|
|
|
- '/api/user/login',
|
|
|
|
- '/api/admin/login',
|
|
|
|
- '/api/setting/read',
|
|
|
|
|
|
+ '/index/Token/getToken',
|
|
|
|
+ '/index/index',
|
|
|
|
+ '/index/user/login',
|
|
|
|
+ '/index/admin/login',
|
|
|
|
+ '/index/setting/read',
|
|
|
|
+ ''
|
|
];
|
|
];
|
|
if (!in_array($this->request->baseUrl(),$route)){
|
|
if (!in_array($this->request->baseUrl(),$route)){
|
|
if (empty($this->request->header('token'))) {
|
|
if (empty($this->request->header('token'))) {
|