17 lines
296 B
Python
Executable file
17 lines
296 B
Python
Executable file
#!/usr/bin/env python3.6
|
|
# -*- coding:utf-8 -*-
|
|
|
|
from flask import Flask
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/')
|
|
def index():
|
|
with open('static/beer.html') as f:
|
|
data = f.read()
|
|
return data
|
|
|
|
@app.route('/hello/<phrase>')
|
|
def hello(phrase):
|
|
return phrase
|
|
|
|
app.run(host='::')
|