added basic flight index & show
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -33,6 +33,8 @@ gem 'jbuilder', '~> 2.5'
|
||||
# Use Capistrano for deployment
|
||||
# gem 'capistrano-rails', group: :development
|
||||
|
||||
gem 'bootstrap'
|
||||
|
||||
# Reduces boot times through caching; required in config/boot.rb
|
||||
gem 'bootsnap', '>= 1.1.0', require: false
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
Rails.application.routes.draw do
|
||||
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
||||
root 'application#hello'
|
||||
root "flights#index"
|
||||
|
||||
get "/flights", to: "flights#index"
|
||||
get "/flights/:id", to: "flights#show"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user