def find_fontface_by_font_id():
response_data = []
try:
query_string = request.args.get("font_id")
fontfaces = FontFaceService().find_by_font_id(query_string)
for fontface in fontfaces:
response_data.append(
{
"fontface_id": fontface.fontface_id,
"fontface": fontface.fontface,
"font_id": fontface.font_id,
"resource_path": fontface.resource_path
}
)
return jsonify(response_data)
except:
return jsonify({"error": "Invalid request"})
评论列表
文章目录