Fix the /api page error when using base URL

This commit is contained in:
Alex Ling
2021-01-30 10:54:21 +00:00
parent cd268af9dd
commit ca8e9a164e
2 changed files with 2 additions and 1 deletions

View File

@@ -154,6 +154,7 @@ struct MainRouter
end
get "/api" do |env|
base_url = Config.current.base_url
render "src/views/api.html.ecr"
end
end