From: Christoph Egger Date: Wed, 3 Dec 2014 19:32:12 +0000 (+0100) Subject: Add /fingerprints/ X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=8e0ce581f42a232f25d374ca7327ca9c2011f265;p=ksp-webtool.git Add /fingerprints/ --- 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)