download: add UseSession annotation

cap
Varun Patil 2022-12-08 14:40:31 -08:00
parent ec218772b6
commit 057795b186
2 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,8 @@ class AlbumsController extends ApiBase
/**
* @NoAdminRequired
*
* @UseSession
*
* Download an album as a zip file
*/
public function download(string $name = ''): JSONResponse

View File

@ -36,6 +36,8 @@ class DownloadController extends ApiBase
*
* @PublicPage
*
* @UseSession
*
* Request to download one or more files
*/
public function request(): JSONResponse
@ -55,6 +57,8 @@ class DownloadController extends ApiBase
/**
* Get a handle for downloading files.
*
* The calling controller must have the UseSession annotation.
*
* @param string $name Name of zip file
* @param int[] $files
*/