Skip to content

Commit

Permalink
Update router
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Apr 16, 2023
1 parent df211b0 commit e8d809d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"require": {
"php": ">=8.0.2",
"gacela-project/gacela": "^1.1",
"gacela-project/router": "dev-main",
"gacela-project/router": "^0.2",
"symfony/http-client": "^6.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
header('Content-Type: application/json');

use Gacela\Framework\Gacela;
use Gacela\Router\Route;
use Gacela\Router\Routing;
use Gacela\Router\RoutingConfigurator;
use PhpLightning\Invoice\Infrastructure\Controller\InvoiceController;
use PhpLightning\Kernel;
Expand All @@ -15,7 +15,7 @@

Gacela::bootstrap(getcwd(), Kernel::gacelaConfigFn());

Route::configure(static function (RoutingConfigurator $routes): void {
Routing::configure(static function (RoutingConfigurator $routes): void {
$routes->get('{username}/{amount}', InvoiceController::class);
$routes->get('{username}', InvoiceController::class);
$routes->get('/', InvoiceController::class);
Expand Down

0 comments on commit e8d809d

Please sign in to comment.