add mobile api
This commit is contained in:
28
mobileapi/controllers/PingController.php
Normal file
28
mobileapi/controllers/PingController.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: rocho
|
||||
* Date: 2018.08.29.
|
||||
* Time: 21:58
|
||||
*/
|
||||
|
||||
namespace mobileapi\controllers;
|
||||
|
||||
use common\components\HttpStatus;
|
||||
use Yii;
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
|
||||
class PingController extends RestController
|
||||
{
|
||||
|
||||
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
public function actionPing( )
|
||||
{
|
||||
Yii::$app->response->setStatusCode( HttpStatus::NO_CONTENT );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user