Force the new UI to be the default (#1354)

This commit is contained in:
Tim Wilkinson 2024-08-21 20:20:43 -07:00 committed by GitHub
parent d29ad24f4a
commit 9432beccfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

@ -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("aredn.hardware")
require("aredn.http")