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
2021-12-29 20:57:23 +08:00

23 lines
498 B
Python

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