src/Api/Controller/Manager.php
public function getUrl()
    {
        if (!userHasPermission('admin:cdn:manager:object:browse')) {
            $oHttpCodes = Factory::service('HttpCodes');
            throw new ApiException(
                'You do not have permission to access this resource',
                $oHttpCodes::STATUS_UNAUTHORIZED
            );
        }

        $oInput = Factory::service('Input');

        return Factory::factory('ApiResponse', 'nails/module-api')
            ->setData(site_url(
                'admin/cdn/manager?' .
                http_build_query([
                    'bucket'   => $oInput->get('bucket'),
                    'callback' => $oInput->get('callback'),
                ])
            ));
    }
public function getUrl()
    {
        if (!userHasPermission('admin:cdn:manager:object:browse')) {
            $oHttpCodes = Factory::service('HttpCodes');
            throw new ApiException(
                'You do not have permission to access this resource',
                $oHttpCodes::STATUS_UNAUTHORIZED
            );
        }

        $oInput = Factory::service('Input');

        return Factory::factory('ApiResponse', 'nails/module-api')
            ->setData(site_url(
                'admin/cdn/manager?' .
                http_build_query([
                    'bucket'   => $oInput->get('bucket'),
                    'callback' => $oInput->get('callback'),
                ])
            ));
    }
public function getUrl ( ) { if ( ! userHasPermission ( 'admin:cdn:manager:object:browse' ) ) { $ oHttpCodes = Factory :: service ( 'HttpCodes' ) ; throw new ApiException ( 'You do not have permission to access this resource' , $ oHttpCodes :: STATUS_UNAUTHORIZED ) ; } $ oInput = Factory :: service ( 'Input' ) ; return Factory :: factory ( 'ApiResponse' , 'nails/module-api' ) -> setData ( site_url ( 'admin/cdn/manager?' . http_build_query ( [ 'bucket' => $ oInput -> get ( 'bucket' ) , 'callback' => $ oInput -> get ( 'callback' ) , ] ) ) ) ; }
Returns the URL for a manager

@return array
Returns the URL for a manager