From 0a04f3a9f516754a9e634bbe0322cd947d63c4a5 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 20 Sep 2022 20:49:57 -0500 Subject: Corregido bug de routing --- Controllers/BooksController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Controllers') 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> GetBook(long id) { if (_context.Books == null) return NotFound(); -- cgit v1.2.3