diff options
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) |