clortho

clortho is a very simple key/value server
git clone https://www.brianlane.com/git/clortho
Log | Files | Refs | README | LICENSE

commit e8094a6a75cdc57d87446427779245f6bcf1f516
parent 4459924bafff6f94a8f5b2e5e28dba0ee581c018
Author: Brian C. Lane <bcl@redhat.com>
Date:   Fri, 26 Dec 2014 20:59:02 -0800

Add /keystore/ prefix

Diffstat:
Msrc/clortho.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/clortho.py b/src/clortho.py @@ -66,9 +66,9 @@ def set_key(request): @asyncio.coroutine def init(loop, host, port): app = web.Application(loop=loop) - app.router.add_route('GET', '/version', get_version) - app.router.add_route('GET', '/{key}', get_key) - app.router.add_route('POST', '/{key}', set_key) + app.router.add_route('GET', '/keystore/version', get_version) + app.router.add_route('GET', '/keystore/{key}', get_key) + app.router.add_route('POST', '/keystore/{key}', set_key) srv = yield from loop.create_server(app.make_handler(), host, port) print("Server started at http://%s:%s" % (host, port))