return API key when creating a channel via API
This commit is contained in:
1 parent
6d48aaa8fc
commit
6e5883bb80
4 files changed
+28
-4
No files matched your search
@@ -206,8 +206,8 @@ class ChannelsController < ApplicationController
|
||||
channel.add_write_api_key
|
||||
@channel_id = channel.id
|
||||
respond_to do |format|
|
||||
format.json { render :json => channel.to_json(Channel.public_options) }
|
||||
format.xml { render :xml => channel.to_xml(Channel.public_options) }
|
||||
format.json { render :json => channel.to_json(Channel.private_options) }
|
||||
format.xml { render :xml => channel.to_xml(Channel.private_options) }
|
||||
format.any { redirect_to channel_path(@channel_id, :anchor => "channelsettings") }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user