-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Currently there is a hard 'no' on GET requests which prevents them from getting to the controller. Instead, in the Controller event, it drops out and lets Symphony handle it internally before the JSON result is then rendered. See:
api_framework/events/event.controller.php
Line 42 in 46b86ef
| if ($request->getMethod() == 'GET') { |
It would be nice if there was a way to indicate that GET requests need to go through to the controller. Perhaps it's as simple as checking for a get() method on the controller like the other HTTP request methods do. The logic for this could go here:
api_framework/events/event.controller.php
Lines 83 to 86 in 46b86ef
| // Throw an exception if it cannot be located. | |
| if (!class_exists($controllerPath)) { | |
| throw new Lib\Exceptions\ControllerNotFoundException($controllerPath); | |
| } |