I am trying to create a simple REST API using Phalcon PHP. I setup up Phalcon with wamp and followed this tutorial http://docs.phalconphp.com/pt/latest/reference/tutorial-rest.html for simple rest api But I am not able to access it at http://localhost/my-rest-api/api/robots (Error: The requested URL /my-rest-api/api/robots was not found on this server.) My-rest-api is in www directory of wamp, can anyone point out my mistake?
If I try to access http://localhost/my-rest-api/index.php I get these two errors
( ! ) Fatal error: Uncaught exception 'Phalcon\Mvc\Micro\Exception' with message 'The Not-Found handler is not callable or is not defined' in C:\wamp\www\my-rest-api\index.php on line 177 ( ! ) Phalcon\Mvc\Micro\Exception: The Not-Found handler is not callable or is not defined in C:\wamp\www\my-rest-api\index.php on line 177
On line 177 code line is
$app->handle();