!7 !include once #1028763 // helper for HttpFromFileSystem set flag NoNanoHTTPD. sbool pkiValidation = true; html { if (domain() == null) ret serve404(); S vis = registerVisitor(); ret domainAndURISwitch(uri, params); } sO domainAndURISwitch(S uri, SS params) { S domain = domain(); uri = addSlash(addSlashPrefix(uri)); if (pkiValidation && startsWith(uri, "/.well-known/")) ret subBot_serveText(loadTextFile(userDir("validation.txt"))); // URI switches new Matches m; if (swic(uri, "/ada/admin/", m)) ret callHtmlMethod2(getBot(#1028301), "/" + m.rest(), params); if (eqic(uri, "/script/")) ret callHtmlMethod2(getBot(#1028300), "/raw", params); if (eq(uri, "/")) ret hrefresh("/ada/admin"); null; }