I’m trying to do this:
@get("/admin/questions/:question_id")
def question (question_id):
pass
#Some code for returning the question
@put("/admin/questions/:question_id")
pass
#I intend to write some code to update the question here.
Is this possible? GET and POST do work, PUT is apparently not working.
Yes, you can do this. See the documentation:
Example: