Skip to content

Commit d614432

Browse files
committed
wip
1 parent f9f6a96 commit d614432

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/JsonApiResource.php

-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ public static function newCollection(mixed $resource)
168168
*/
169169
public function toResponse($request)
170170
{
171-
// TODO: should this header be configurable? Should it be a middleware? Should we not set it if one exists?
172171
return tap(parent::toResponse($request)->header('Content-type', 'application/vnd.api+json'), $this->flush(...));
173172
}
174173
}

src/JsonApiResourceCollection.php

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public function with($request)
6565
*/
6666
public function toResponse($request)
6767
{
68-
// TODO: should this header be configurable? Should it be a middleware? Should we not set it if one exists?
6968
return tap(parent::toResponse($request)->header('Content-type', 'application/vnd.api+json'), $this->flush(...));
7069
}
7170

0 commit comments

Comments
 (0)