Merge pull request #9 from eatonphil/master

Fixed readme syntax error
This commit is contained in:
PJ Dietz 2014-12-31 10:20:41 -05:00
commit cf821c1614
1 changed files with 4 additions and 4 deletions

View File

@ -53,10 +53,10 @@ WellRESTed's primary goal is to facilitate mapping of URIs to classes that will
// Build the router. // Build the router.
$myRouter = new Router(); $myRouter = new Router();
$myRouter->addRoutes(array( $myRouter->addRoutes(array(
new StaticRoute("/", "\\myapi\\Handlers\\RootHandler")), new StaticRoute("/", "\\myapi\\Handlers\\RootHandler"),
new StaticRoute("/cats/", "\\myapi\\Handlers\\CatCollectionHandler")), new StaticRoute("/cats/", "\\myapi\\Handlers\\CatCollectionHandler"),
new TemplateRoute("/cats/{id}/", "\\myapi\\Handlers\\CatItemHandler")) new TemplateRoute("/cats/{id}/", "\\myapi\\Handlers\\CatItemHandler")
); ));
$myRouter->respond(); $myRouter->respond();
``` ```