Use created response

This commit is contained in:
Andrew Tomaka 2015-10-12 16:44:28 -04:00
parent f678a77677
commit 60df748e6b

2
app.rb
View file

@ -20,7 +20,7 @@ post '/jokes' do
@joke = Joke.new(params[:joke])
if @joke.save
status 204
status 201
else
status 422
end