Skip to content

Commit

Permalink
Alteração do namespace do controlador nas rotas.
Browse files Browse the repository at this point in the history
  • Loading branch information
luispaiva committed Jul 9, 2022
1 parent b843989 commit 7b23b37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$container = new \Slim\Container($config);
$app = new \Slim\App($container);

$app->get('/', '\App\Exchange:init');
$app->get('/exchange/', '\App\Exchange:init');
$app->get('/exchange[/{amount:[A-Za-z0-9.-]+}[/{from}[/{to}[/{rate:[A-Za-z0-9.-]+}]]]]', '\App\Exchange:init');
$app->get('/', '\App\Controllers\Exchange:init');
$app->get('/exchange/', '\App\Controllers\Exchange:init');
$app->get('/exchange[/{amount:[A-Za-z0-9.-]+}[/{from}[/{to}[/{rate:[A-Za-z0-9.-]+}]]]]', '\App\Controllers\Exchange:init');
$app->run();

0 comments on commit 7b23b37

Please sign in to comment.