<?php
/**
 * WP: includes/rest/class-rest-controller.php → PS: controllers/front/api.php
 */
class WhatsboostApiModuleFrontController extends ModuleFrontController
{
    public function initContent()
    {
        parent::initContent();
        header('Content-Type: application/json; charset=utf-8');
        http_response_code(200);
        die(json_encode(['ok' => true, 'time' => time()]));
    }
}
