src/Http/Controllers/Api/PermissionsController.php
public function available()
    {
        return $this->core->api()->response(
            $this->makeContainer(
                $this->core->modules()->getAllPermissions()
            )
        );
    }
public function available()
    {
        return $this->core->api()->response(
            $this->makeContainer(
                $this->core->modules()->getAllPermissions()
            )
        );
    }
Returns available permissions as defined by loaded modules.

@return mixed