Compare commits
1 Commits
7416294437
...
072ae25f7c
| Author | SHA1 | Date | |
|---|---|---|---|
| 072ae25f7c |
@@ -31,7 +31,7 @@ def get_index(path_id):
|
||||
with get_db() as session:
|
||||
markdown = session.query(Markdown).filter(Markdown.path_id == path_id).filter(Markdown.title == "index").first()
|
||||
if markdown is None:
|
||||
return jsonify({"error": "index not exist"}), 404
|
||||
return jsonify({}), 204
|
||||
return jsonify(markdown.to_dict()), 200
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user