mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Rename module Mangadex
to MangaDex
This commit is contained in:
parent
6659041631
commit
e8c365b7a1
@ -15,7 +15,7 @@ macro parse_strings_from_json (names)
|
|||||||
{% end %}
|
{% end %}
|
||||||
end
|
end
|
||||||
|
|
||||||
module Mangadex
|
module MangaDex
|
||||||
class DownloadContext
|
class DownloadContext
|
||||||
property success = false
|
property success = false
|
||||||
property url : String
|
property url : String
|
||||||
|
@ -93,7 +93,7 @@ class APIRouter < Router
|
|||||||
get "/api/admin/mangadex/manga/:id" do |env|
|
get "/api/admin/mangadex/manga/:id" do |env|
|
||||||
begin
|
begin
|
||||||
id = env.params.url["id"]
|
id = env.params.url["id"]
|
||||||
api = Mangadex::API.new \
|
api = MangaDex::API.new \
|
||||||
@context.config.mangadex["api_url"].to_s
|
@context.config.mangadex["api_url"].to_s
|
||||||
manga = api.get_manga id
|
manga = api.get_manga id
|
||||||
send_json env, manga.to_info_json
|
send_json env, manga.to_info_json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user