views.py 311 B

12345678910111213141516171819
  1. # -*- coding: utf-8 -*-
  2. from flask import Flask, jsonify
  3. app = Flask(__name__)
  4. @app.route("/")
  5. def index():
  6. return "this is my test project!测试自动部署7!测试成功^__^"
  7. @app.route("/test")
  8. def test():
  9. return jsonify(msg=u'非跨域接口',status=1)
  10. if __name__ == "__main__":
  11. app.run()