We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a331c commit 8e4bb99Copy full SHA for 8e4bb99
2 files changed
src/library/entry.cr
@@ -49,6 +49,7 @@ abstract class Entry
49
json.field "err_msg", err_msg
50
end
51
json.field "zip_path", path # for API backward compatability
52
+ json.field "path", path
53
json.field "title_id", @book.id
54
json.field "title_title", @book.title
55
json.field "sort_title", sort_title
src/routes/api.cr
@@ -40,7 +40,7 @@ struct APIRouter
40
Koa.schema "entry", {
41
"pages" => Int32,
42
"mtime" => Int64,
43
- }.merge(s %w(path title size id title_id display_name cover_url)),
+ }.merge(s %w(zip_path path title size id title_id display_name cover_url)),
44
desc: "An entry in a book"
45
46
Koa.schema "title", {
0 commit comments