Ejemplo n.º 1
0
<?php

spl_autoload_register();
$mode = 'debug';
$server = new RestServer($mode);
$server->refreshCache();
$server->addClass('UserController', 'user');
$server->addClass('HouseController', 'house');
$server->addClass('BillController', 'bill');
$server->addClass('ExpenseController', 'expense');
$server->addClass('DebtController', 'debt');
$server->handle();