home.py 403 B

12345678910111213141516
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. '''
  4. @Contact : liuyuqi.gov@msn.cn
  5. @Time : 2023/11/09 14:22:14
  6. @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
  7. @Desc : home, redirect to index.html
  8. '''
  9. from flask import Blueprint, redirect, url_for
  10. bp = Blueprint('home', __name__)
  11. @bp.route('/')
  12. def home():
  13. return redirect(url_for('static', filename='./index.html'))