23 lines
498 B
Python
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)
|