Created
August 8, 2012 16:46
-
-
Save ipconfiger/3296547 to your computer and use it in GitHub Desktop.
a demo for BAE flask app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding:utf-8 -*- | |
from flask import Flask, g, request | |
app = Flask(__name__) | |
app.debug = True | |
@app.route('/') | |
def hello(): | |
return "Hello, world! - Flask\n" | |
@app.route('/ping') | |
def hello(): | |
return "ping\n" | |
from bae.core.wsgi import WSGIApplication | |
application = WSGIApplication(app) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from flask import Flask, g, request
app = Flask(name)
app.debug = True
@app.route('/')
def root():
return "Hello, world! - Flask\n"
@app.route('/pong')
def pong():
return "pong\n"
@app.route('/ping')
def ping():
return "ping\n"
from bae.core.wsgi import WSGIApplication
application = WSGIApplication(app)