Skip to content

Commit

Permalink
change position
Browse files Browse the repository at this point in the history
  • Loading branch information
stentrop committed Mar 19, 2024
1 parent cf294ee commit fccd183
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Providers/IORouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ public function register()
*/
public function map(Router $router, ApiRouter $api)
{
$api->version(
['v1'],
['namespace' => 'IO\Api\Resources', 'middleware' => ['throttleFrontend:register-form']],
function (ApiRouter $api) {
$api->post('io/customer', 'CustomerResource@store');
}
);

$api->version(['v1'], ['namespace' => 'IO\Api\Resources'], function (ApiRouter $api) {
$api->get('io/basket', 'BasketResource@index');
$api->resource('io/basket/items', 'BasketItemResource');
Expand Down Expand Up @@ -66,14 +74,6 @@ public function map(Router $router, ApiRouter $api)
$api->get('io/session', 'SessionResource@index');
});

$api->version(
['v1'],
['namespace' => 'IO\Api\Resources', 'middleware' => ['throttleFrontend:register-form']],
function (ApiRouter $api) {
$api->post('io/customer', 'CustomerResource@store');
}
);

if (RouteConfig::isActive(RouteConfig::CONTACT_MAIL_API)) {
$api->version(
['v1'],
Expand Down

0 comments on commit fccd183

Please sign in to comment.