diff --git a/app/Http/Controllers/Api/V1/User/UserController.php b/app/Http/Controllers/Api/V1/User/UserController.php new file mode 100644 index 0000000..32820cb --- /dev/null +++ b/app/Http/Controllers/Api/V1/User/UserController.php @@ -0,0 +1,14 @@ +user()); + return rest_api($user); + } +} \ No newline at end of file diff --git a/app/Http/Resources/UserResource.php b/app/Http/Resources/UserResource.php new file mode 100644 index 0000000..545eff7 --- /dev/null +++ b/app/Http/Resources/UserResource.php @@ -0,0 +1,16 @@ + $this->name, + "email" => $this->email, + "avatar" => $this->avatar + ]; + } +} \ No newline at end of file