[mod] apparently yunohost standard is to return 201

This commit is contained in:
Laurent Peuch 2017-09-20 05:53:33 +02:00
parent 464fd1ffc2
commit dfcfbf472b

View file

@ -234,7 +234,7 @@ put '/migrate_key_to_sha512/:public_key' do
# himself # himself
`rndc flush` `rndc flush`
halt 200, { :public_key => entry.public_key, :subdomain => entry.subdomain, :current_ip => entry.current_ip }.to_json halt 201, { :public_key => entry.public_key, :subdomain => entry.subdomain, :current_ip => entry.current_ip }.to_json
end end
# Update a sub-domain # Update a sub-domain