邓淳远、崔鹏宇、翁思扬组云计算期末项目
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

17 rindas
466 B

pirms 4 gadiem
pirms 4 gadiem
  1. from flask import request, Flask, jsonify
  2. import json
  3. from flask_sqlalchemy import SQLAlchemy
  4. from APP.view import collection, block
  5. from APP.view.auth import bp_auth
  6. from APP.view.block import bp_block
  7. from APP.view.collection import bp_collection
  8. from APP.view.database import init_db
  9. app = Flask(__name__)
  10. app = Flask(__name__)
  11. app.register_blueprint(bp_auth)
  12. app.register_blueprint(bp_block)
  13. app.register_blueprint(bp_collection)
  14. init_db()
  15. app.run(debug=True)