statics-server / api /index.py
thanhnv2323's picture
Upload 402 files
dee5f11
raw
history blame
434 Bytes
from flask import Flask
from flask import send_from_directory
app = Flask(__name__)
@app.route('/')
def home():
return 'Hello, World!'
@app.route('/ieltsonline.com/<path:path>')
def send_report(path):
if path.endswith("/"):
path = path+ "index.html"
return send_from_directory('ieltsonline.com', path)
@app.route('/about')
def about():
return 'About'
if __name__ == '__main__':
app.run("0.0.0.0",3001)