API sorting improvements:

- Add endpoints for getting/updating sorting methods
- Results from library and title endpoints are now sorted
This commit is contained in:
Alex Ling
2022-03-22 10:46:38 +00:00
parent a5a7396edd
commit 7ecdb1c0dd
4 changed files with 116 additions and 11 deletions
+7
View File
@@ -55,6 +55,13 @@ class SortOptions
def to_tuple
{@method.to_s.underscore, ascend}
end
def to_json
{
"method" => method.to_s.underscore,
"ascend" => ascend,
}.to_json
end
end
struct Image