fitness-web/mobileapi/controllers/ApiController.php

30 lines
495 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 actionCardPage(){
$apiManager = new ApiManager();
return $apiManager->getCardPage();
}
}