diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-09-02 02:13:18 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-09-03 15:42:51 +0200 |
commit | 9d34f371cb9c5ab0d60bd3158678b9cc9da6cc80 (patch) | |
tree | bdf8d9a039fb8e73652e539f7fb33856025e5bb7 /config | |
parent | 9e217d87c095170460a8580d5215ddf7cbe639f4 (diff) |
Added CreditsController
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/config/routes.php b/config/routes.php index 5296dbc7..2267bc88 100644 --- a/config/routes.php +++ b/config/routes.php @@ -1,14 +1,7 @@ <?php use FastRoute\RouteCollector; -use Psr\Http\Message\ServerRequestInterface; /** @var RouteCollector $route */ -/** Demo route endpoint, TODO: Remove */ -$route->addRoute('GET', '/hello/{name}', function ($request) { - /** @var ServerRequestInterface $request */ - $name = $request->getAttribute('name'); - - return response(sprintf('Hello %s!', htmlspecialchars($name))); -}); +$route->get('/credits', 'CreditsController@index'); |