middleware(['jwt']); // 获取用户信息 Route::post('refresh', 'app\\common\\controller\\Auth@refresh')->middleware(['jwt']); // 刷新令牌 }); // 附件上传相关路由 Route::group('v1/', function () { Route::post('attachment/upload', 'app\\common\\controller\\Attachment@upload'); // 上传附件 Route::get('attachment/:id', 'app\\common\\controller\\Attachment@info'); // 获取附件信息 })->middleware(['jwt']);