mirror of
https://github.com/snipe/snipe-it.git
synced 2026-03-29 20:04:21 +00:00
initial display work done
This commit is contained in:
@ -87,9 +87,8 @@ class ProfileController extends Controller
|
||||
*
|
||||
* @author [A. Gianotto] [<snipe@snipe.net>]
|
||||
* @since [v4.0]
|
||||
* @return View
|
||||
*/
|
||||
public function api()
|
||||
public function api(): \Illuminate\Contracts\View\View
|
||||
{
|
||||
|
||||
// Make sure the self.api permission has been granted
|
||||
@ -97,7 +96,7 @@ class ProfileController extends Controller
|
||||
abort(403);
|
||||
}
|
||||
|
||||
return view('account/api');
|
||||
return view('account/api')->with('tokens', Auth::user()->tokens()->get());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user