<?php



require_once __DIR__ . '/../config.php';

// GET /admin/verify-token.php
// Header: Authorization: Bearer <token>

$admin = requireAdmin();

jsonOk([
    'admin' => [
        'id' => $admin['idusuarios_sist'],
        'nombre_usr' => $admin['nombre_usr']
    ]
], 200);
