Skip to content

Commit

Permalink
Create new channels off a PUT request
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Jun 1, 2013
1 parent b185fe5 commit 9d063b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airship/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def index():
def list_channels():
return channels_json(station)

@app.route("/channels/new", methods=['POST'])
@app.route("/channels/new", methods=['PUT'])
def new_channel():
channel = request.form["channel"]
channel = request.form.keys()[0]
station.create_channel(channel)
return ""

Expand Down

0 comments on commit 9d063b1

Please sign in to comment.