From 59a0439c1a308138cee7936c4d60f1edae2ffd50 Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Tue, 29 Dec 2020 05:01:03 +0100 Subject: [PATCH] Drop dump_urls endpoint who cares lol (originally added for issue #1 but they never archived 0x0) --- fhost.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/fhost.py b/fhost.py index 6cf742b..fbdc44c 100755 --- a/fhost.py +++ b/fhost.py @@ -316,24 +316,6 @@ def get(path): abort(404) -@app.route("/dump_urls/") -@app.route("/dump_urls/") -def dump_urls(start=0): - meta = "#FORMAT: BEACON\n#PREFIX: {}/\n\n".format(fhost_url("https")) - - def gen(): - yield meta - - for url in URL.query.order_by(URL.id.asc()).offset(start): - if url.url.startswith("http") or url.url.startswith("https"): - bar = "|" - else: - bar = "||" - - yield url.getname() + bar + url.url + "\n" - - return Response(gen(), mimetype="text/plain") - @app.route("/", methods=["GET", "POST"]) def fhost(): if request.method == "POST":