1
0
Fork 0

Use created response

This commit is contained in:
Andrew Tomaka 2015-10-12 16:44:28 -04:00
parent f678a77677
commit 60df748e6b
1 changed files with 1 additions and 1 deletions

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