Added additional endpoints for cards / stacks

Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
This commit is contained in:
Ryan Fletcher
2018-07-21 12:17:28 -04:00
committed by Julius Härtl
parent 3e965d0cfb
commit 172a80fa5d
3 changed files with 24 additions and 0 deletions

View File

@@ -119,4 +119,16 @@ class StackApiController extends ApiController {
$stack = $this->stackService->delete($this->request->getParam('stackId'));
return new DataResponse($stack, HTTP::STATUS_OK);
}
/**
* @NoAdminRequired
* @CORS
* @NoCSRFRequired
*
* get the stacks that have been archived.
*/
public function getArchived() {
$stacks = $this->stackService->findAllArchived($this->request->getParam('boardId'));
return new DataResponse($stacks, HTTP::STATUS_OK);
}
}