diff options
author | ngharo <nick@ngha.ro> | 2018-01-03 19:47:41 -0600 |
---|---|---|
committer | ngharo <nick@ngha.ro> | 2018-01-03 19:47:41 -0600 |
commit | 1f4160511f4853de614355f45b94152fbd19e29e (patch) | |
tree | 77e144270ae0ecf8cebe8857246bb75ae6092013 /server/app.py | |
parent | f920c7da0618fd9f4181c2c78ef054e324185355 (diff) | |
download | imOk-www-master.tar.xz imOk-www-master.zip |
Diffstat (limited to 'server/app.py')
-rw-r--r-- | server/app.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/app.py b/server/app.py new file mode 100644 index 0000000..716867a --- /dev/null +++ b/server/app.py @@ -0,0 +1,9 @@ +import json +from bottle import route, request, run +from button import loadAll, Button + +@route('/button') +def show_all(): + return json.dumps(loadAll()) + +run(host='localhost', port=8080, debug=True) |