Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created February 7, 2017 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarsBergqvist/e22b77faa5b898c9afb147a87551bc17 to your computer and use it in GitHub Desktop.
Save LarsBergqvist/e22b77faa5b898c9afb147a87551bc17 to your computer and use it in GitHub Desktop.
Flask route with put and post
@app.route("/Outlets/api/outlets/<int:groupNumber>/<int:buttonNumber>",methods=["PUT","POST"])
def update_outlet_state(groupNumber, buttonNumber):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment