diff --git a/backend/lib/Router.php b/backend/lib/Router.php index beac791..dba9bd5 100644 --- a/backend/lib/Router.php +++ b/backend/lib/Router.php @@ -77,7 +77,7 @@ class Router { 'group' => 'Volkszaehler\Controller\AggregatorController', 'entity' => 'Volkszaehler\Controller\EntityController', 'data' => 'Volkszaehler\Controller\DataController', - 'capabilities' => 'Volkszaehler\Controller\CapabilitiesController' + 'capabilities' => 'Volkszaehler\Controller\CapabilitiesController' ); /** @@ -102,9 +102,6 @@ class Router { $request = new HTTP\Request(); $response = new HTTP\Response(); - // early default format - $this->view = new View\JSON($request, $response); - // initialize entity manager $this->em = self::createEntityManager(); @@ -140,7 +137,7 @@ class Router { /** * Processes the request * - * Request Example: http://sub.domain.local/vz/backend/channel/550e8400-e29b-11d4-a716-446655440000/data.json?operation=edit&title=New Title + * Example: http://sub.domain.local/vz/backend/channel/550e8400-e29b-11d4-a716-446655440000/data.json?operation=edit&title=New Title */ public function run() { $pathInfo = substr($this->pathInfo, 1, strrpos($this->pathInfo, '.') -1); // remove leading slash and format