Full URL navigation support

This commit is contained in:
maddiebaka
2023-08-07 21:02:09 -04:00
parent a9f340153c
commit 22cf104f6e
6 changed files with 31 additions and 13 deletions

View File

@@ -1,7 +1,5 @@
require 'skeksis'
SERVE_DIR="/Users/madeline/Code/gemini-bridge-rack/gemini"
class SkeksisApp
def initialize
@skeksis = Skeksis::GemBridge.new
@@ -10,7 +8,7 @@ class SkeksisApp
def call(env)
status = 200
headers = { "content-type" => "text/html" }
body = @skeksis.query(SERVE_DIR + env['PATH_INFO'], env)
body = @skeksis.query(env['PATH_INFO'], env)
[status, headers, body]
end