text: from flask import jsonify
  from app.api import bp
  
  
  @bp.route('/ping', methods=['GET'])
  def ping():
      '''前端Vue.js用来测试与后端Flask API的连通性'''
      return jsonify('Pong...')
  
  
  @bp.route('/test-email', methods=['GET'])
  def test_email():
      from flask import current_app
      from app.utils.email import send_email
      send_email("[Anhlbt's blog] Test Email",
                 sender=current_app.config['MAIL_SENDER'],
                 recipients=['crabcompasss@gmail.com'],
                 text_body='text body',
                 html_body='<h1>HTML body</h1>')
      return jsonify('Send Email OK!')
  