OOPified.
This commit is contained in:
parent
e3cdde8a74
commit
43043a08e9
2 changed files with 30 additions and 24 deletions
|
@ -1,12 +1,14 @@
|
|||
from flask import Flask, send_from_directory
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
class WebHost:
|
||||
@staticmethod
|
||||
def main_page():
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return app.send_static_file('index.html')
|
||||
@app.route('/')
|
||||
def index():
|
||||
return app.send_static_file('index.html')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue