summaryrefslogtreecommitdiff
path: root/extras/appengine/sqlformat/__init__.py
blob: db9c132c7c3438b9ffb935c8762add18aa0126b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from flask import Flask, make_response

from sqlformat.legacy import legacy


app = Flask('sqlformat')


@app.route('/ping')
def ping():
    return make_response('pong')

@app.route('/_ah/warmup')
def warmup():
    return make_response('polishing chrome')

@app.route('/fail')
def fail():
    # test URL for failure handling
    raise AssertionError('You shouldn\'t be here!')


# Register legacy URLs last so that newer URLs replace them.
app.register_blueprint(legacy)