diff --git a/src/routes/main.cr b/src/routes/main.cr index 70b1334..6504800 100644 --- a/src/routes/main.cr +++ b/src/routes/main.cr @@ -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 diff --git a/src/views/api.html.ecr b/src/views/api.html.ecr index 5bfdfa4..f513c11 100644 --- a/src/views/api.html.ecr +++ b/src/views/api.html.ecr @@ -8,7 +8,7 @@ - + diff --git a/src/views/title.html.ecr b/src/views/title.html.ecr index 30b240e..11b4393 100644 --- a/src/views/title.html.ecr +++ b/src/views/title.html.ecr @@ -125,7 +125,7 @@ <% content_for "script" do %> <%= render_component "dots-scripts" %> - +