46 lines
906 B
PHP
46 lines
906 B
PHP
<?php
|
|
/**
|
|
* Created by IntelliJ IDEA.
|
|
* User: rocho
|
|
* Date: 2018.08.29.
|
|
* Time: 21:58
|
|
*/
|
|
|
|
namespace mobileapi\controllers;
|
|
|
|
|
|
use common\components\Helper;
|
|
use common\models\Card;
|
|
use common\models\Ticket;
|
|
use mobileapi\manager\ApiManager;
|
|
use yii\web\BadRequestHttpException;
|
|
use yii\web\NotFoundHttpException;
|
|
|
|
class ApiController extends RestController
|
|
{
|
|
|
|
public function actionDashboardPage(){
|
|
|
|
$apiManager = new ApiManager();
|
|
return $apiManager->getDashboardPage();
|
|
}
|
|
|
|
|
|
public function actionCardPage(){
|
|
|
|
$apiManager = new ApiManager();
|
|
return $apiManager->getCardPage();
|
|
}
|
|
|
|
public function actionTicketPage(){
|
|
$apiManager = new ApiManager();
|
|
return $apiManager->getTicketPage();
|
|
}
|
|
|
|
public function actionVirtualKeyPage(){
|
|
|
|
$apiManager = new ApiManager();
|
|
return $apiManager->getVirtualKeyPage();
|
|
}
|
|
}
|