mirror of
https://github.com/elyby/accounts.git
synced 2026-10-20 20:58:03 +05:30
17 lines
379 B
PHP
17 lines
379 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace api\controllers;
|
|
|
|
final class TestController extends \yii\web\Controller {
|
|
|
|
public function actionIndex(): array {
|
|
return [
|
|
'isSecure' => $this->request->getIsSecureConnection(),
|
|
'host' => $this->request->getHostInfo(),
|
|
'headers' => $this->request->headers->toArray(),
|
|
];
|
|
}
|
|
|
|
}
|