Finished routing, simple website now works yay

This commit is contained in:
Hannah-Dagemark 2024-04-18 16:01:30 +02:00
commit 7a112697ec
11 changed files with 148 additions and 15 deletions

6
test.rb Normal file
View file

@ -0,0 +1,6 @@
route = {"hello/:hi" => "goodbye"}
p route["hello:hi"]
if route.keys[0].include?(":")
route = {route.keys[0].split(":")[0].concat("") => route.values[0]}
end
p route