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)