Other filetypes now work, or at least CSS
This commit is contained in:
parent
7a112697ec
commit
d48cfbcf11
4 changed files with 63 additions and 17 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue