15 lines
273 B
Python
15 lines
273 B
Python
import os
|
|
|
|
from flask import Flask, send_file
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route("/")
|
|
def index():
|
|
return send_file(os.path.join(app.root_path, 'src', 'index.html'))
|
|
|
|
def main():
|
|
app.run(port=int(os.environ.get('PORT', 3000)))
|
|
|
|
if __name__ == "__main__":
|
|
main() |