<?php

declare(strict_types=1);

namespace backend\modules\api;

/**
 * API module — stateless, returns JSON responses only.
 */
class Module extends \yii\base\Module
{
    public $controllerNamespace = 'backend\modules\api\controllers';

    public function init(): void
    {
        parent::init();
        \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
    }
}
