mirror of https://github.com/aredn/aredn.git
Force the new UI to be the default (#1354)
This commit is contained in:
parent
d29ad24f4a
commit
9432beccfd
|
@ -35,6 +35,17 @@
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
-- Super early new UI redirect
|
||||||
|
if os.getenv("HTTP_REFERER"):match("^http.+//[^/]+/?$") then
|
||||||
|
print("Status: 307 Temporary Redirect")
|
||||||
|
print("Cache-Control: no-store\r")
|
||||||
|
print("Access-Control-Allow-Origin: *\r")
|
||||||
|
print("Location: /a/status\r")
|
||||||
|
print "\r"
|
||||||
|
io.flush()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
require("nixio")
|
require("nixio")
|
||||||
require("aredn.hardware")
|
require("aredn.hardware")
|
||||||
require("aredn.http")
|
require("aredn.http")
|
||||||
|
|
Loading…
Reference in New Issue