1
0
Fork 0
forked from mia/0x0

Drop dump_urls endpoint

who cares lol
(originally added for issue #1 but they never archived 0x0)
This commit is contained in:
Mia Herkt 2020-12-29 05:01:03 +01:00
parent d815d6855f
commit 59a0439c1a
Signed by untrusted user: mia
GPG key ID: 72E154B8622EC191

View file

@ -316,24 +316,6 @@ def get(path):
abort(404)
@app.route("/dump_urls/")
@app.route("/dump_urls/<int:start>")
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":