mirror of
https://github.com/elyby/accounts.git
synced 2024-11-15 01:36:12 +05:30
30 lines
552 B
PHP
30 lines
552 B
PHP
<?php
|
|
namespace api\controllers;
|
|
|
|
use Yii;
|
|
use yii\helpers\ArrayHelper;
|
|
|
|
class OptionsController extends Controller {
|
|
|
|
public function behaviors() {
|
|
return ArrayHelper::merge(parent::behaviors(), [
|
|
'authenticator' => [
|
|
'except' => ['index'],
|
|
],
|
|
]);
|
|
}
|
|
|
|
public function verbs() {
|
|
return [
|
|
'index' => ['GET'],
|
|
];
|
|
}
|
|
|
|
public function actionIndex() {
|
|
return [
|
|
'reCaptchaPublicKey' => Yii::$app->reCaptcha->public,
|
|
];
|
|
}
|
|
|
|
}
|