]> git.siccegge.de Git - ksp-webtool.git/commitdiff
Add /fingerprints/
authorChristoph Egger <christoph@anonymous.siccegge.de>
Wed, 3 Dec 2014 19:32:12 +0000 (20:32 +0100)
committerChristoph Egger <christoph@anonymous.siccegge.de>
Wed, 3 Dec 2014 19:32:12 +0000 (20:32 +0100)
server.py

index c4f35dd2c6ec65b348759261b509d81ce36413bc..dc57133fd221554f5ace68426d31dd724c9e5b26 100644 (file)
--- 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)