mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-30 00:00:43 -04:00
Use base url in views
This commit is contained in:
+2
-1
@@ -3,6 +3,7 @@ require "./router"
|
||||
class MainRouter < Router
|
||||
def initialize
|
||||
get "/login" do |env|
|
||||
base_url = Config.current.base_url
|
||||
render "src/views/login.ecr"
|
||||
end
|
||||
|
||||
@@ -59,7 +60,7 @@ class MainRouter < Router
|
||||
end
|
||||
|
||||
get "/download" do |env|
|
||||
base_url = Config.current.mangadex["base_url"]
|
||||
mangadex_base_url = Config.current.mangadex["base_url"]
|
||||
layout "download"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user