From 462ba9835e36ca3b42ceb59f33c03a98a22c19af Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 23 Nov 2024 16:53:39 +0000 Subject: Adds a new home page and more_info page --- config/routes.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 3455716..55ca8e8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,11 +1,17 @@ Rails.application.routes.draw do + get "home", to: "pages#home" + get "about", to: "pages#about" + get "faq", to: "pages#faq" + get "contact", to: "pages#contact" + get "terms", to: "pages#terms" + get "more-info", to: "pages#more_info" resources :categories resources :resource_types resources :pdfresources resources :users resource :session resources :passwords, param: :token - resource :registration, only: [:new, :create] + resource :registration, only: [ :new, :create ] # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. @@ -17,5 +23,5 @@ Rails.application.routes.draw do # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker # Defines the root path route ("/") - root "pdfresources#index" + root "pages#home" end -- cgit v1.2.3