18 lines
296 B
Python
18 lines
296 B
Python
|
#!/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='::')
|