Add POST PUT and DELETE to the status endpoint

This commit is contained in:
Kyle Conroy
2012-02-26 21:59:34 -08:00
parent 309888134b
commit da07bb6675
+1 -1
View File
@@ -167,7 +167,7 @@ def stream_n_messages(n):
@app.route('/status/<codes>')
def view_status_code(codes):
def view_status_code(codes, methods=("GET", "POST", "PUT", "DELETE")):
"""Return status code or random status code if more than one are given"""
if not ',' in codes: