|
@@ -205,15 +205,17 @@ async def get_content():
|
|
|
|
|
|
row = rows[0]
|
|
row = rows[0]
|
|
|
|
|
|
- return jsonify({
|
|
|
|
- "status_code": 200,
|
|
|
|
- "detail": "success",
|
|
|
|
- "data": {
|
|
|
|
- "title": row.get("title", ""),
|
|
|
|
- "text": row.get("text", ""),
|
|
|
|
- "doc_id": row.get("doc_id", "")
|
|
|
|
|
|
+ return jsonify(
|
|
|
|
+ {
|
|
|
|
+ "status_code": 200,
|
|
|
|
+ "detail": "success",
|
|
|
|
+ "data": {
|
|
|
|
+ "title": row.get("title", ""),
|
|
|
|
+ "text": row.get("text", ""),
|
|
|
|
+ "doc_id": row.get("doc_id", ""),
|
|
|
|
+ },
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ )
|
|
|
|
|
|
|
|
|
|
@server_bp.route("/content/list", methods=["GET"])
|
|
@server_bp.route("/content/list", methods=["GET"])
|