Skip to content

Commit 75aa779

Browse files
committed
added json as content type
1 parent 10cb8a2 commit 75aa779

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
subdomain :api do
3131

3232
get '/' do
33+
content_type :json
3334
DB.fetch("SELECT * FROM launches") do |row|
3435
row = row[:name]
3536
JSON.pretty_generate(row)

0 commit comments

Comments
 (0)