diff --git a/Lesson_3/04_Responding to Different Types of Requests/Solution Code/endpoints_project2sol.py b/Lesson_3/04_Responding to Different Types of Requests/Solution Code/endpoints_project2sol.py index c5d635c..fdc1458 100644 --- a/Lesson_3/04_Responding to Different Types of Requests/Solution Code/endpoints_project2sol.py +++ b/Lesson_3/04_Responding to Different Types of Requests/Solution Code/endpoints_project2sol.py @@ -1,6 +1,6 @@ -from flask import Flask +from flask import Flask, request + app = Flask(__name__) -# Create the appropriate app.route functions, test and see if they work, and paste your URI’s in the boxes below. #Make an app.route() decorator here @app.route("/puppies", methods = ['GET', 'POST']) @@ -42,3 +42,7 @@ def updatePuppy(id): def deletePuppy(id): return "Removing Puppy with id %s" % id + +if __name__ == '__main__': + app.debug = True + app.run(host='0.0.0.0', port=5000)