8000 [Docs] Fix formatting in media-types chapter (#553) · CodingSeo/laravel-json-api@35014b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 35014b1

Browse files
authored
[Docs] Fix formatting in media-types chapter (cloudcreativity#553)
1 parent 0fb4163 commit 35014b1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/features/media-types.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -461,13 +461,13 @@ To use a re-usable content negotiator on specific resource types, use the `conte
461461
when registering the resource. For example, if we wanted to use the `json` content negotiator only
462462
for the `posts` and `comments` resources, but not the `tags` resource:
463463

464-
```php
465-
JsonApi::register('default')->routes(function ($api, $router) {
466-
$api->resource('posts')->contentNegotiator('json');
467-
$api->resource('comments')->contentNegotiator('json');
468-
$api->resource('tags'); // uses the default content negotiator
469-
});
470-
```
464+
```php
465+
JsonApi::register('default')->routes(function ($api, $router) {
466+
$api->resource('posts')->contentNegotiator('json');
467+
$api->resource('comments')->contentNegotiator('json');
468+
$api->resource('tags'); // uses the default content negotiator
469+
});
470+
```
471471

472472
If you have generated a resource-specific content negotiator, it will be automatically detected so there
473473
is no need to configure it.

0 commit comments

Comments
 (0)
0