def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
def after_request(response):
    response.headers.add('X-Test', 'This is only test.')
    response.headers.add('Access-Control-Allow-Origin', '*')  # TODO: set to real origin
    return response