Added success param to the response
This commit is contained in:
parent
58b8641414
commit
f1de9c4b8a
|
@ -4,7 +4,8 @@ module Api
|
||||||
respond_to :json
|
respond_to :json
|
||||||
|
|
||||||
def create
|
def create
|
||||||
respond_with Client.create(client_params)
|
@client = Client.create(client_params)
|
||||||
|
respond_with(@client, :success => true)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue