mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-24 00:03:12 -04:00
- when building for release, embed the static files in binary
This commit is contained in:
+1
-9
@@ -1,14 +1,6 @@
|
||||
require "kemal"
|
||||
require "./storage"
|
||||
|
||||
def request_path_startswith(env, ary)
|
||||
ary.each do |prefix|
|
||||
if env.request.path.starts_with? prefix
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
require "./util"
|
||||
|
||||
class AuthHandler < Kemal::Handler
|
||||
exclude ["/login"]
|
||||
|
||||
Reference in New Issue
Block a user