Other filetypes now work, or at least CSS

This commit is contained in:
Hannah-Dagemark 2024-04-25 16:22:27 +02:00
commit d48cfbcf11
4 changed files with 63 additions and 17 deletions

View file

@ -19,7 +19,8 @@ class Router
if match != nil
print("\nMatch: ", match, "\n")
return 200
returner = [match, 200]
return returner
else
if request.resource.match?(@routes[0][:resource]) != true
p "failed to find: #{request.resource} resource.\nExpected: #{String(@routes[0][:resource])} resource"
@ -28,7 +29,8 @@ class Router
else
p "Failed to match, got no reason, just kinda didn't feel like it"
end
return 404
returner = [request, 404]
return returner
end
end