Skip to content

Instantly share code, notes, and snippets.

@oxalorg
Last active August 29, 2015 14:23
Show Gist options
  • Save oxalorg/68f158065f85cec84bde to your computer and use it in GitHub Desktop.
Save oxalorg/68f158065f85cec84bde to your computer and use it in GitHub Desktop.
@app.route("/<int:x>-<int:y>")
def sum(x, y):
resp = make_response(str(x + y))
resp.headers['Access-Control-Allow-Origin'] = '*'
return resp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment