fs-walle-react-ts/walle-server.py

12 lines
306 B
Python
Raw Normal View History

2017-07-12 06:40:24 +00:00
from flask import Flask,send_from_directory
app = Flask(__name__,static_url_path='',static_folder='build')
import os
@app.route('/static/<path:path>')
def send_js(path):
return send_from_directory('build/static', path)
@app.route('/')
def hello_world():
return app.send_static_file('index.html')