Add staging environment
This commit is contained in:
parent
acf2003487
commit
daf1e4b4ac
@ -31,6 +31,11 @@ class LiquorCabinet < Sinatra::Base
|
|||||||
disable :protection
|
disable :protection
|
||||||
end
|
end
|
||||||
|
|
||||||
|
configure :staging do
|
||||||
|
disable :logging
|
||||||
|
disable :protection
|
||||||
|
end
|
||||||
|
|
||||||
["/:user/*/:key", "/:user/:key", "/:user/*/", "/:user/"].each do |path|
|
["/:user/*/:key", "/:user/:key", "/:user/*/", "/:user/"].each do |path|
|
||||||
before path do
|
before path do
|
||||||
headers 'Access-Control-Allow-Origin' => '*',
|
headers 'Access-Control-Allow-Origin' => '*',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user