committed by
Julius Härtl
parent
86dde2d6b8
commit
8316a0b25f
@@ -87,6 +87,22 @@ class BoardApiController extends ApiController {
|
||||
return new DataResponse($board);
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @CORS
|
||||
* @NoCSRFRequired
|
||||
*
|
||||
* @params $title
|
||||
* @params $color
|
||||
*
|
||||
* Create a board with the specified title and color.
|
||||
*/
|
||||
public function create($title, $color) {
|
||||
$board = $this->service->create($title, $this->userId, $color);
|
||||
|
||||
return new DataResponse($board);
|
||||
}
|
||||
|
||||
/**
|
||||
* @NoAdminRequired
|
||||
* @CORS
|
||||
|
||||
Reference in New Issue
Block a user