Clemens Klug 2017-12-04 15:06:06 +00:00
parent 4cb65f7d7b
commit e3aa121024
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ app.debug = True
@app.route("/")
def hello():
return "Hello ESP8266!"
@app.route("/id/<id>", methods=['GET','POST'])
@app.route("/id/<path:id>", methods=['GET','POST'])
def log(id):
app.logger.info("%s was here and delivered '%s'", id, request.data.decode("utf8"))
return "You were here!"