This commit is contained in:
wispx
2018-12-07 17:00:25 +08:00
parent fdd1b65eba
commit df40fd0a8f
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -7,9 +7,8 @@ use think\Exception;
class Token extends Base
{
public function initialize($auth = false)
public function initialize()
{
parent::initialize($auth);
}
/**
+1 -1
View File
@@ -16,7 +16,7 @@ Route::view('compatibility', 'index@tpl/compatibility');
// [RESTFul Api Route]
Route::group('api', function () {
Route::post('upload', 'api/Upload/index');
Route::resource('auth', 'api/Auth');
Route::post('token', 'api/Token/index');
Route::resource('user', 'api/User');
});