# fluent-community/2.8.0/Modules/Integrations/FluentCart/Http/cart_api.php

FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS &amp; Online Courses, version 2.8.0. 19 lines.

- Page: https://pluginprobe.com/plugins/fluent-community/2.8.0/code/Modules/Integrations/FluentCart/Http/cart_api.php
- Raw: https://pluginprobe.com/plugins/fluent-community/2.8.0/raw/Modules/Integrations/FluentCart/Http/cart_api.php
- Modified: 2026-07-24T13:35:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-community/2.8.0/code/Modules/Integrations/FluentCart/Http/cart_api.php#L10-L20`.

```php
<?php

defined('ABSPATH') || exit;

/**
 * @var FluentCommunity\Framework\Http\Router $router
 */

$router->prefix('cart')
    ->namespace('FluentCommunity\Modules\Integrations\FluentCart\Http\Controllers')
    ->withPolicy(\FluentCommunity\App\Http\Policies\SpacePolicy::class)
    ->group(function ($router) {
        $router->get('/products/search', 'PaywallController@searchProduct');
        $router->post('/products/create', 'PaywallController@createProduct');
        $router->get('/spaces/{spaceId}/paywalls', 'PaywallController@getPaywalls')->int('spaceId');
        $router->post('/spaces/{spaceId}/paywalls', 'PaywallController@addPaywall')->int('spaceId');
        $router->delete('/spaces/{spaceId}/paywalls', 'PaywallController@removePaywall')->int('spaceId');
    });

```
