| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') || exit; |
| 4 |
|
| 5 |
/** |
| 6 |
* @var FluentCommunity\Framework\Http\Router $router |
| 7 |
*/ |
| 8 |
|
| 9 |
$router->prefix('cart') |
| 10 |
->namespace('FluentCommunity\Modules\Integrations\FluentCart\Http\Controllers') |
| 11 |
->withPolicy(\FluentCommunity\App\Http\Policies\SpacePolicy::class) |
| 12 |
->group(function ($router) { |
| 13 |
$router->get('/products/search', 'PaywallController@searchProduct'); |
| 14 |
$router->post('/products/create', 'PaywallController@createProduct'); |
| 15 |
$router->get('/spaces/{spaceId}/paywalls', 'PaywallController@getPaywalls')->int('spaceId'); |
| 16 |
$router->post('/spaces/{spaceId}/paywalls', 'PaywallController@addPaywall')->int('spaceId'); |
| 17 |
$router->delete('/spaces/{spaceId}/paywalls', 'PaywallController@removePaywall')->int('spaceId'); |
| 18 |
}); |
| 19 |
|