summaryrefslogtreecommitdiff
path: root/Controllers
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-09-20 20:49:57 -0500
committerHombreLaser <sebastian-440@live.com>2022-09-20 20:49:57 -0500
commit0a04f3a9f516754a9e634bbe0322cd947d63c4a5 (patch)
treed885e2d40faf5a8151c50b45c3ba63f2a4b6b8d7 /Controllers
parentf20b0eec603e8951cf78ed119745a85fde521706 (diff)
Corregido bug de routing
Diffstat (limited to 'Controllers')
-rw-r--r--Controllers/BooksController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Controllers/BooksController.cs b/Controllers/BooksController.cs
index f46f2f0..d238da7 100644
--- a/Controllers/BooksController.cs
+++ b/Controllers/BooksController.cs
@@ -36,7 +36,7 @@ namespace LibraryAPI.Controllers {
return book;
}
- [HttpGet("{id}")]
+ [HttpGet("{id:int}")]
public async Task<ActionResult<Book>> GetBook(long id) {
if (_context.Books == null)
return NotFound();