/**
  * @PublicPage
  *
  * Returns a list of all images from the folder the link gives access to
  *
  * @inheritDoc
  *
  * @param string $location a path representing the current album in the app
  * @param string $features the list of supported features
  * @param string $etag the last known etag in the client
  */
 public function getFiles($location, $features, $etag)
 {
     return parent::getFiles($location, $features, $etag);
 }
示例#2
0
文件: routes.php 项目: jboz62/cms
    return csrf_token();
});
Route::group(array('before' => 'auth'), function () {
    /**
     * Get images for project x
     *
     */
    Route::get('/api/v1/getImageFromImageableItem/{imageable_type}/{imageable_id}', 'ImagesController@getImageFromImageableItem');
    Route::post('/api/v1/getImageFromImageableItem/{imageable_type}/{imageable_id}', function () {
        return Image::create(Input::all());
    });
    Route::resource('/api/v1/images', 'ImagesController');
    Route::get('images/projects', 'ImagesController@uploadProject');
    Route::post('images/projects', 'ImagesController@uploadProject');
    Route::post('/api/v1/ckeditor/images', function () {
        $files = new FilesController();
        return $files->postImage();
    });
    Route::post('/api/v1/ckeditor/files', function () {
        $files = new FilesController();
        return $files->postFile();
    });
    Route::get('/api/v1/ckeditor/files', function () {
        $files = new FilesController();
        return $files->getFiles();
    });
    Route::get('/api/v1/ckeditor/gallery', function () {
        $images = new FilesController();
        return $images->getImageswysiwyg();
    });
});