Closed ntvsx193 closed 11 years ago
Fail to bind by method create does not equal /
/
set router
RestService\Server::create('/v1', new Api\Router) ->setDebugMode(true) ->collectRoutes() ->run();
controller
namespace Api; class Router { /** * @param int $server_id * @url stats/([0-9]+) * @url stats * @return array */ public function getStats($server_id = 0){ return ['id' => $server_id]; } }
+ GET /v1 + GET /v1/stats + GET /v1/stats/5 All response empty. If first argv of method create('/', ...all works
+ GET /v1
+ GET /v1/stats
+ GET /v1/stats/5
empty
create('/', ...
Thanks. I've fixed that issue. Can you check the newest version? Updated the 0.1.3.
Good, now it works!
Fail to bind by method create does not equal
/
set router
controller
+ GET /v1
+ GET /v1/stats
+ GET /v1/stats/5
All responseempty
. If first argv of methodcreate('/', ...
all works