mirror of
https://git.0x0.st/mia/0x0.git
synced 2024-11-22 00:47:12 +01:00
Drop dump_urls endpoint
who cares lol (originally added for issue #1 but they never archived 0x0)
This commit is contained in:
parent
d815d6855f
commit
59a0439c1a
1 changed files with 0 additions and 18 deletions
18
fhost.py
18
fhost.py
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue