Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 8e4bb99

Browse files
committed
Add zip_path to API document, add path property
1 parent 39a331c commit 8e4bb99

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/library/entry.cr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ abstract class Entry
4949
json.field "err_msg", err_msg
5050
end
5151
json.field "zip_path", path # for API backward compatability
52+
json.field "path", path
5253
json.field "title_id", @book.id
5354
json.field "title_title", @book.title
5455
json.field "sort_title", sort_title

src/routes/api.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct APIRouter
4040
Koa.schema "entry", {
4141
"pages" => Int32,
4242
"mtime" => Int64,
43-
}.merge(s %w(path title size id title_id display_name cover_url)),
43+
}.merge(s %w(zip_path path title size id title_id display_name cover_url)),
4444
desc: "An entry in a book"
4545

4646
Koa.schema "title", {

0 commit comments

Comments
 (0)