From df55fe032cac178e1d84ac1a3348911c5fb4c85f Mon Sep 17 00:00:00 2001 From: Peppuz Date: Tue, 24 Apr 2018 18:20:47 +0200 Subject: [PATCH] Doc posts --- src/ciclostile/web/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ciclostile/web/api.py b/src/ciclostile/web/api.py index 587b102..89e2eb8 100755 --- a/src/ciclostile/web/api.py +++ b/src/ciclostile/web/api.py @@ -58,5 +58,8 @@ POST_DIR = "." @api.route("/posts") def posts_list(): + """ + Returns all .md files under POST_DIR + """ posts = glob(f"{POST_DIR}/**/*.md", recursive=True) return jsonify(posts)