download: add UseSession annotation
parent
ec218772b6
commit
057795b186
|
@ -55,6 +55,8 @@ class AlbumsController extends ApiBase
|
||||||
/**
|
/**
|
||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
*
|
*
|
||||||
|
* @UseSession
|
||||||
|
*
|
||||||
* Download an album as a zip file
|
* Download an album as a zip file
|
||||||
*/
|
*/
|
||||||
public function download(string $name = ''): JSONResponse
|
public function download(string $name = ''): JSONResponse
|
||||||
|
|
|
@ -36,6 +36,8 @@ class DownloadController extends ApiBase
|
||||||
*
|
*
|
||||||
* @PublicPage
|
* @PublicPage
|
||||||
*
|
*
|
||||||
|
* @UseSession
|
||||||
|
*
|
||||||
* Request to download one or more files
|
* Request to download one or more files
|
||||||
*/
|
*/
|
||||||
public function request(): JSONResponse
|
public function request(): JSONResponse
|
||||||
|
@ -55,6 +57,8 @@ class DownloadController extends ApiBase
|
||||||
/**
|
/**
|
||||||
* Get a handle for downloading files.
|
* Get a handle for downloading files.
|
||||||
*
|
*
|
||||||
|
* The calling controller must have the UseSession annotation.
|
||||||
|
*
|
||||||
* @param string $name Name of zip file
|
* @param string $name Name of zip file
|
||||||
* @param int[] $files
|
* @param int[] $files
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue