skeksis/config.ru

21 lines
360 B
Plaintext
Raw Normal View History

2023-08-02 02:53:54 +00:00
require 'skeksis'
SERVE_DIR="/Users/madeline/Code/gemini-bridge-rack/gemini"
class SkeksisApp
2023-08-05 01:49:40 +00:00
def initialize
@skeksis = Skeksis::GemBridge.new
end
def call(env)
status = 200
2023-08-03 17:42:28 +00:00
headers = { "content-type" => "text/html" }
2023-08-05 01:49:40 +00:00
body = @skeksis.query(SERVE_DIR + env['PATH_INFO'], env)
[status, headers, body]
end
end
run SkeksisApp.new