summaryrefslogtreecommitdiff
path: root/server/app.py
blob: 716867a57c624fe99e0f800b8d547ce73fbc7288 (plain)
1
2
3
4
5
6
7
8
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)