Delete boards via the API.
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
Julius Härtl
parent
0c266d4a1f
commit
7dcd49c485
@@ -73,6 +73,19 @@ class BoardApiController extends ApiController {
|
||||
public function get($id) {
|
||||
$board = $this->service->find($id);
|
||||
|
||||
// FIXME: this should probably 404 if the board has been deleted
|
||||
|
||||
return (new DataResponse($board));
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @CORS
|
||||
* @NoCSRFRequired
|
||||
*/
|
||||
public function delete($id) {
|
||||
$board = $this->service->delete($id);
|
||||
|
||||
return (new DataResponse($board));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user