diff options
Diffstat (limited to 'Controllers')
-rw-r--r-- | Controllers/BooksController.cs | 2 |
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(); |