diff --git a/app/library/App/Controllers/ProjectController.php b/app/library/App/Controllers/ProjectController.php index 6132240..d7a4d75 100644 --- a/app/library/App/Controllers/ProjectController.php +++ b/app/library/App/Controllers/ProjectController.php @@ -23,7 +23,7 @@ class ProjectController extends CrudResourceController { } - public function find($id) + public function test_get($id) { $item = $this->getFindData($id); diff --git a/app/library/App/Resources/ProjectResource.php b/app/library/App/Resources/ProjectResource.php index 755fb5c..d1c6a4b 100644 --- a/app/library/App/Resources/ProjectResource.php +++ b/app/library/App/Resources/ProjectResource.php @@ -44,8 +44,11 @@ class ProjectResource extends ApiResource { /** endpoints **/ $this - ->endpoint(ApiEndpoint::post('/test', 'test') - ->description('Just for test') + ->endpoint(ApiEndpoint::post('/test_post', 'test_post') + ->description('Just for test post query') + ) + ->endpoint(ApiEndpoint::post('/test_get', 'test_get') + ->description('Just for test get query') ) ->endpoint(ApiEndpoint::all()) ->endpoint(ApiEndpoint::create()) -- libgit2 0.21.4