2023-08-02 02:53:54 +00:00
|
|
|
require 'skeksis'
|
|
|
|
|
2023-07-29 20:04:45 +00:00
|
|
|
class SkeksisApp
|
2023-08-05 01:49:40 +00:00
|
|
|
def initialize
|
|
|
|
@skeksis = Skeksis::GemBridge.new
|
|
|
|
end
|
|
|
|
|
2023-07-29 20:04:45 +00:00
|
|
|
def call(env)
|
|
|
|
status = 200
|
2023-08-03 17:42:28 +00:00
|
|
|
headers = { "content-type" => "text/html" }
|
2023-08-08 01:02:09 +00:00
|
|
|
body = @skeksis.query(env['PATH_INFO'], env)
|
2023-07-29 20:04:45 +00:00
|
|
|
|
|
|
|
[status, headers, body]
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
run SkeksisApp.new
|