Skip to content

Commit c2388cb

Browse files
idirouhabmpociot
authored andcommitted
Fix issue #114 (#123)
Adding indentation to js example request
1 parent eba1043 commit c2388cb

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/resources/views/partials/route.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
@if(count($parsedRoute['parameters']))
2929
"data": {!! str_replace(' ',' ',json_encode(array_combine(array_keys($parsedRoute['parameters']), array_map(function($param){ return $param['value']; },$parsedRoute['parameters'])), JSON_PRETTY_PRINT)) !!},
3030
@endif
31-
"headers": {
32-
"accept": "application/json"
31+
"headers": {
32+
"accept": "application/json"
3333
}
3434
}
3535

3636
$.ajax(settings).done(function (response) {
37-
console.log(response);
37+
console.log(response);
3838
});
3939
```
4040

tests/Fixtures/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ var settings = {
4040
"crossDomain": true,
4141
"url": "http://localhost/api/test",
4242
"method": "GET",
43-
"headers": {
44-
"accept": "application/json"
43+
"headers": {
44+
"accept": "application/json"
4545
}
4646
}
4747

4848
$.ajax(settings).done(function (response) {
49-
console.log(response);
49+
console.log(response);
5050
});
5151
```
5252

@@ -79,13 +79,13 @@ var settings = {
7979
"crossDomain": true,
8080
"url": "http://localhost/api/fetch",
8181
"method": "GET",
82-
"headers": {
83-
"accept": "application/json"
82+
"headers": {
83+
"accept": "application/json"
8484
}
8585
}
8686

8787
$.ajax(settings).done(function (response) {
88-
console.log(response);
88+
console.log(response);
8989
});
9090
```
9191

0 commit comments

Comments
 (0)