commit
6902b59dbf
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import bottle
|
||||||
from bottle import (
|
from bottle import (
|
||||||
get,
|
get,
|
||||||
run,
|
run,
|
||||||
|
@ -13,6 +14,7 @@ import thesethreewords as these
|
||||||
def index():
|
def index():
|
||||||
return template('index', err=None)
|
return template('index', err=None)
|
||||||
|
|
||||||
|
|
||||||
@get('/<threewords>')
|
@get('/<threewords>')
|
||||||
def showMap(threewords):
|
def showMap(threewords):
|
||||||
try:
|
try:
|
||||||
|
@ -25,3 +27,5 @@ def showMap(threewords):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
run(host='localhost', port=8080)
|
run(host='localhost', port=8080)
|
||||||
|
|
||||||
|
app = bottle.default_app()
|
|
@ -0,0 +1,2 @@
|
||||||
|
python-geohash==0.8.5
|
||||||
|
bottle==0.12.7
|
Loading…
Reference in New Issue