30 lines
640 B
PHP
Raw Normal View History

2017-01-16 22:21:11 -05:00
<?php
2017-01-17 22:12:45 -05:00
//define('IN_SCRIPT', 1);
//define('HESK_PATH', '../');
2017-01-17 22:08:48 -05:00
// Router: handles all REST requests to go to their proper place. Common dependency loading also happens here
2017-01-17 22:12:45 -05:00
//require_once(__DIR__ . '/core/common.php');
require(__DIR__ . '/../Link/src/Link.php');
2017-01-16 22:21:11 -05:00
2017-01-18 17:22:24 -05:00
class HomeController
{
function get($i){
echo 'You have got to home :) Val:' . intval($i);
}
function post(){
echo 'You have posted to home';
}
function put(){
echo 'You have put to home';
}
function delete(){
echo 'You have deleted the home :(';
}
2017-01-17 22:12:45 -05:00
}
2017-01-17 21:58:57 -05:00
2017-01-18 17:22:24 -05:00
Link::all(array(
'/test/{i}' => 'HomeController',
2017-01-17 22:12:45 -05:00
));