This repository has been archived on 2021-12-30. You can view files and clone it, but cannot push or open issues or pull requests.
ELOStar/app.py

23 lines
498 B
Python
Raw Normal View History

2021-12-29 16:53:57 +08:00
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : app.py
@Author: liuyihui
@Email : liuyihui02@gmail.com
'''
# here put the import lib
2021-12-29 20:57:23 +08:00
import os
2021-12-29 16:53:57 +08:00
from flask import Flask, request, render_template
2021-12-29 20:57:23 +08:00
app = Flask(__name__, template_folder='./public/', static_folder='./public/static/')
app.config['ROOT_FOLDER'] = os.path.abspath('.')
2021-12-29 16:53:57 +08:00
2021-12-29 20:57:23 +08:00
@app.route('/')
2021-12-29 16:53:57 +08:00
def root():
2021-12-29 20:57:23 +08:00
return render_template('index.html')
2021-12-29 16:53:57 +08:00
if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0', port=4002)