Bläddra i källkod

Final Commit

master
Lennart Verschelden 2 år sedan
förälder
incheckning
2108b831f0
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      public/index.php

+ 1
- 1
public/index.php Visa fil

// }; // };
// }); // });


// Route with optional params, see https://www.slimframework.com/docs/v4/objects/routing.html#how-to-create-routes section Optional segments
// Route with optional parameters, see https://www.slimframework.com/docs/v4/objects/routing.html#how-to-create-routes section Optional segments
$app->get('/orders[/{client}]', \Shop\Controller\Orders::class . ':getOrders'); $app->get('/orders[/{client}]', \Shop\Controller\Orders::class . ':getOrders');
// $app->get('/orders[/{client}]', function (Request $request, Response $response, array $args) { // $app->get('/orders[/{client}]', function (Request $request, Response $response, array $args) {
// $db = new Orders(); // $db = new Orders();

Laddar…
Avbryt
Spara