- when building for release, embed the static files in binary

This commit is contained in:
Alex Ling
2020-02-15 23:29:11 +00:00
parent 0c177c3d31
commit 21fcde944d
6 changed files with 47 additions and 11 deletions
+1 -9
View File
@@ -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"]