Rename module Mangadex to MangaDex

This commit is contained in:
Alex Ling 2020-02-28 16:48:48 +00:00
parent 6659041631
commit e8c365b7a1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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