@@ -0,0 +1,809 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0Afrom urllib2 import urlopen%0A%0Afrom bottle import route, run, response, request%0A%0A%0Adef jsonp(request, dictionary):%0A    if (request.query.callback):%0A        return %22%25s(%25s)%22 %25 (request.query.callback, dictionary)%0A    return dictionary%0A%0A%0A@route('/%3Cpath:path%3E')%0Adef index(path):%0A    response.set_header('Access-Control-Allow-Origin', '*')%0A    response.set_header('charset', 'UTF-8')%0A%0A    j = %22&%22.join(%22%25s=%25s%22 %25 tup for tup in request.GET.items())%0A    conn = urlopen('http://127.0.0.1:8098/%7B%7D?%7B%7D'.format(path, j))%0A%0A    if (request.query.callback):%0A        response.content_type = %22application/javascript%22%0A        return jsonp(request, conn.read())%0A    else:%0A        response.content_type = 'application/json'%0A        return conn.read()%0A%0A%0Arun(host='127.0.0.1', port=8889)%0A

Create api proxy to riak