Files
UNIT3D/app/Http/Controllers/API/UserController.php
2024-11-12 21:08:34 +00:00

32 lines
746 B
PHP

<?php
declare(strict_types=1);
/**
* NOTICE OF LICENSE.
*
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D Community Edition
*
* @author HDVinnie <hdinnovations@protonmail.com>
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
*/
namespace App\Http\Controllers\API;
use App\Http\Resources\UserResource;
class UserController extends BaseController
{
final public function show(): UserResource
{
$user = auth()->user();
UserResource::withoutWrapping();
return new UserResource($user);
}
}