mirror of
https://github.com/kennethreitz/coinbin.org.git
synced 2026-06-05 23:10:17 +00:00
3ecb72cb09
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
15 lines
237 B
Python
15 lines
237 B
Python
from flask import Flask
|
|
from flask_common import Common
|
|
|
|
app = Flask(__name__)
|
|
|
|
common = Common(app)
|
|
|
|
@app.route("/")
|
|
@common.cache.cached(timeout=50)
|
|
def hello():
|
|
return "Hello World!"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
common.serve() |