Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Jul 12, 2024
1 parent f9f6a96 commit d614432
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/JsonApiResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public static function newCollection(mixed $resource)
*/
public function toResponse($request)
{
// TODO: should this header be configurable? Should it be a middleware? Should we not set it if one exists?
return tap(parent::toResponse($request)->header('Content-type', 'application/vnd.api+json'), $this->flush(...));
}
}
1 change: 0 additions & 1 deletion src/JsonApiResourceCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public function with($request)
*/
public function toResponse($request)
{
// TODO: should this header be configurable? Should it be a middleware? Should we not set it if one exists?
return tap(parent::toResponse($request)->header('Content-type', 'application/vnd.api+json'), $this->flush(...));
}

Expand Down

0 comments on commit d614432

Please sign in to comment.