Skip to content

Instantly share code, notes, and snippets.

@thechaudharysab
Created December 24, 2018 00:07
Show Gist options
  • Save thechaudharysab/a652ea6a067135db34f3a9ba294282e7 to your computer and use it in GitHub Desktop.
Save thechaudharysab/a652ea6a067135db34f3a9ba294282e7 to your computer and use it in GitHub Desktop.
Adding the resource to our API and specify its route
api.add_resource(User, "/user/<string:name>") #<string:name> indicates that it is a variable part in the route which accepts any name.
app.run(debug=True, port=5001)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment