-
-
Save hash32bot/4cc2ae8ae27213115a43fe741ec0304d to your computer and use it in GitHub Desktop.
Sinatra App - app.rb changes - http://bit.ly/2V9p6OL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Changes to file app.rb | |
# ... | |
require 'sinatra/activerecord' | |
require_relative 'models/speaker' | |
class ConferenceApp < Sinatra::Base | |
# ... | |
get '/speakers' do | |
@speakers = Speaker.all | |
json @speakers | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment