summaryrefslogtreecommitdiff
path: root/extras/appengine/sqlformat/__init__.py
blob: 11f4d9d1e865172081664b14272766e459a9f618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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')


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