added basic flight index & show

This commit is contained in:
2022-01-14 13:24:36 -05:00
parent 278c7169d8
commit 67e8e7f74a
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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