<?php

namespace App\Controllers;

use CodeIgniter\RESTful\ResourceController;

class User extends ResourceController
{
    public function profile()
    {
        // In a real app, you'd get the user ID from the token (passed via request or service)
        // For now, we'll just return a success message proving the route is protected but accessible
        return $this->respond(['message' => 'You have accessed a protected route!', 'data' => 'User Profile Data']);
    }
}
