blob: b5866ab18f9024fb2202a704bd928bc1ff065055 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Main API definitions of test_analyzer."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import flask # pylint: disable=import-error
app = flask.Flask(__name__)
@app.route('/hello', methods=['GET'])
def Hello():
"""Simple hello service."""
return 'hello, world'
@app.route('/internal_hello', methods=['GET'])
def InternalHello():
"""Simple internal hello service."""
return 'hello, internal world'
if __name__ == '__main__':
# This is used when running locally. Gunicorn is used to run the
# application on Google App Engine. See entrypoint in app.yaml.
app.run(host='127.0.0.1', port=8080, debug=True)