邓淳远、崔鹏宇、翁思扬组云计算期末项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
998 B

4 years ago
  1. from flask import Flask, render_template, request, jsonify, session, Blueprint
  2. from bson import json_util
  3. import uuid
  4. from APP.view.database import db_session
  5. from APP.view.model import Block, CollectionBlock
  6. bp_start = Blueprint("start", __name__)
  7. @bp_start.route("/", methods=["POST",'GET'])
  8. def hello():
  9. return render_template('login.html')
  10. @bp_start.route("/login", methods=["POST",'GET'])
  11. def login():
  12. return render_template('login.html')
  13. @bp_start.route("/register", methods=["POST",'GET'])
  14. def register():
  15. return render_template('register.html')
  16. @bp_start.route("/forget", methods=["POST",'GET'])
  17. def forget():
  18. return render_template('forget.html')
  19. @bp_start.route("/personal", methods=["POST",'GET'])
  20. def personal():
  21. return render_template('personal.html')
  22. @bp_start.route("/square", methods=["POST",'GET'])
  23. def square():
  24. return render_template('square.html')
  25. @bp_start.route("/add", methods=["POST",'GET'])
  26. def add():
  27. return render_template('add.html')