tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

searchSuggestionEngine.sjs (349B)


      1 /* Any copyright is dedicated to the Public Domain.
      2  * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 function handleRequest(req, resp) {
      5   let suffixes = ["foo", "bar"];
      6   let data = [req.queryString, suffixes.map(s => req.queryString + s)];
      7   resp.setHeader("Content-Type", "application/json", false);
      8   resp.write(JSON.stringify(data));
      9 }