diff --git a/index.php b/index.php index 7adeee3..34352e3 100644 --- a/index.php +++ b/index.php @@ -193,7 +193,8 @@ // VERSION NUMBER SHOULD BE FIRST URL PARAMETER, ALWAYS ->setPrefix('/v1/example') // Must be a string in order to support lazy loading - ->setHandler('\PhalconRest\Controllers\ExampleController'); + //->setHandler('\PhalconRest\Controllers\ExampleController'); + ->setHandler(new \PhalconRest\Controllers\ExampleController()); // fix #8 // Set Access-Control-Allow headers. $exampleCollection->options('/', 'optionsBase');