51 lines
1.1 KiB
PHP
51 lines
1.1 KiB
PHP
<?php
|
|
|
|
class V1_IndexController extends App_Controller_Rest_Controller
|
|
{
|
|
|
|
public function init()
|
|
{
|
|
$this->_resourceName = 'Abstract';
|
|
parent::init();
|
|
}
|
|
|
|
public function indexAction()
|
|
{
|
|
try {
|
|
$this->_responseData->message = 'As Fb2b.net WS';
|
|
$this->_status = true;
|
|
$this->sendResponse();
|
|
} catch (Exception $e) {
|
|
$this->_responseData->message = $e->getMessage();
|
|
$this->_responseData->trace = $e->getTrace();
|
|
$this->sendResponse();
|
|
}
|
|
}
|
|
|
|
public function getAction()
|
|
{
|
|
$this->_responseData->message = 'Funzione non disponibile';
|
|
$this->sendResponse();
|
|
}
|
|
|
|
public function postAction()
|
|
{
|
|
$this->_responseData->message = 'Funzione non disponibile';
|
|
$this->sendResponse();
|
|
}
|
|
|
|
public function putAction()
|
|
{
|
|
$this->_responseData->message = 'Funzione non disponibile';
|
|
$this->sendResponse();
|
|
}
|
|
|
|
public function deleteAction()
|
|
{
|
|
$this->_responseData->message = 'Funzione non disponibile';
|
|
$this->sendResponse();
|
|
}
|
|
|
|
|
|
}//END CLASS
|