Expose ETag on single object get methods
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -64,7 +64,9 @@ class CardApiController extends ApiController {
|
||||
*/
|
||||
public function get() {
|
||||
$card = $this->cardService->find($this->request->getParam('cardId'));
|
||||
return new DataResponse($card, HTTP::STATUS_OK);
|
||||
$response = new DataResponse($card, HTTP::STATUS_OK);
|
||||
$response->setETag($card->getEtag());
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user