Fix admin API bypassing

This commit is contained in:
Alex Ling
2021-01-17 08:10:43 +00:00
parent 7a09c9006a
commit 3071d44e32
3 changed files with 29 additions and 16 deletions

View File

@@ -7,10 +7,6 @@ require "./routes/*"
class Server
def initialize
error 403 do |env|
message = "HTTP 403: You are not authorized to visit #{env.request.path}"
layout "message"
end
error 404 do |env|
message = "HTTP 404: Mango cannot find the page #{env.request.path}"
layout "message"