Skip to content

Commit 71579ff

Browse files
authored
Merge pull request #130 from dotkernel/issue-129
updated routes in v6 tutorials
2 parents 16ae855 + 586ba87 commit 71579ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/book/v6/tutorials/create-book-module-via-dot-maker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ curl -X POST http://0.0.0.0:8080/book
422422
To list the books use:
423423

424424
```shell
425-
curl http://0.0.0.0:8080/books
425+
curl http://0.0.0.0:8080/book
426426
```
427427

428428
To fetch a book, `curl` one of the links found in the output of the **list books** command, under `_embedded` . `books` . * . `_links` . `self` . `href`.

docs/book/v6/tutorials/create-book-module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ class RoutesDelegator
695695

696696
$routeCollector->post('/book', PostBookResourceHandler::class, 'book::create-book');
697697
$routeCollector->get('/book/' . $uuid, GetBookResourceHandler::class, 'book::view-book');
698-
$routeCollector->get('/books', GetBookCollectionHandler::class, 'book::list-books');
698+
$routeCollector->get('/book', GetBookCollectionHandler::class, 'book::list-books');
699699

700700
return $callback();
701701
}
@@ -822,7 +822,7 @@ curl -X POST http://0.0.0.0:8080/book
822822
To list the books use:
823823

824824
```shell
825-
curl http://0.0.0.0:8080/books
825+
curl http://0.0.0.0:8080/book
826826
```
827827

828828
To fetch a book, `curl` one of the links found in the output of the **list books** command, under `_embedded` . `books` . * . `_links` . `self` . `href`.

0 commit comments

Comments
 (0)