3
0
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:
spencerrlongg
2023-11-08 16:48:20 -06:00
parent 0c4901487d
commit d68f1e4cfa
3 changed files with 63 additions and 8 deletions

View File

@ -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());
}
/**