This commit is contained in:
Roberto Alsina 2024-07-04 17:02:34 -03:00
parent 35283a0aea
commit ead5cfdcc6
3 changed files with 4 additions and 3 deletions

View File

@ -91,7 +91,8 @@ module Funko
end end
if env.params.query.fetch("format", "json") == "html" if env.params.query.fetch("format", "json") == "html"
render "src/views/funkos.ecr" else render "src/views/funkos.ecr"
else
result.to_json result.to_json
end end
end end

View File

@ -1,5 +1,5 @@
require "./funko.cr" require "./funko.cr"
require "./proxyconf.cr" require "./proxy.cr"
require "./secrets.cr" require "./secrets.cr"
require "./terminal.cr" require "./terminal.cr"
require "compress/gzip" require "compress/gzip"

View File

@ -1,5 +1,5 @@
require "docr" require "docr"
require "funko" require "./funko.cr"
require "kemal" require "kemal"
module Proxy module Proxy