This commit is contained in:
root 2019-11-23 13:27:38 +08:00
parent 45a19164ec
commit 5d6d3c8703

View File

@ -11,7 +11,9 @@ class TutorialController extends Controller
public function getSubscribeUrl (Request $request) {
$user = User::find($request->session()->get('id'));
return response([
'data' => config('v2board.app_url', env('APP_URL')) . '/api/v1/client/subscribe?token=' . $user['token']
'data' => [
'subscribe_url' => config('v2board.app_url', env('APP_URL')) . '/api/v1/client/subscribe?token=' . $user['token']
]
]);
}