From 8e0ce581f42a232f25d374ca7327ca9c2011f265 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Wed, 3 Dec 2014 20:32:12 +0100 Subject: [PATCH] Add /fingerprints/ --- server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.py b/server.py index c4f35dd..dc57133 100644 --- a/server.py +++ b/server.py @@ -57,6 +57,11 @@ def download(): return Response('\n'.join(result), mimetype='application/pgp') +@app.route('/fingerprints/') +def fingerprints(): + return Response('\n'.join([ i.split('/')[-1][:-4] for i in + glob.glob(os.path.join(basedir, 'data/*.asc')) ]), + mimetype='text/plain') if __name__ == "__main__": app.run(debug=True, port=11371) -- 2.39.5