diff --git a/api/controllers/CategoryController.php b/api/controllers/CategoryController.php index 07558d9d..cf27e2b8 100644 --- a/api/controllers/CategoryController.php +++ b/api/controllers/CategoryController.php @@ -11,6 +11,10 @@ namespace Controllers\Category; use BusinessLogic\Category\CategoryRetriever; class CategoryController { + function get($i) { + print json_encode(intval($i)); + } + static function getAllCategories($hesk_settings) { require_once(__DIR__ . '/../businesslogic/category/CategoryRetriever.php'); diff --git a/api/index.php b/api/index.php index ca5719ef..0529e779 100644 --- a/api/index.php +++ b/api/index.php @@ -1,9 +1,14 @@ 'HomeController', + '/test/{i}' => '\Controllers\Category\CategoryController', + '404' => 'handle404' )); \ No newline at end of file