From 7e22cc5f57b35e2eea7442a2228fa2bdc4d57720 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sun, 15 Mar 2020 01:03:49 +0000 Subject: [PATCH] Fix bug in API `/api/book/:tid` that causes 500 --- src/routes/api.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api.cr b/src/routes/api.cr index c8ec60d..cefb1b6 100644 --- a/src/routes/api.cr +++ b/src/routes/api.cr @@ -26,7 +26,7 @@ class APIRouter < Router end end - get "/api/book/:title" do |env| + get "/api/book/:tid" do |env| begin tid = env.params.url["tid"] title = @context.library.get_title tid