Soc/config/routes.rb

24 lines
679 B
Ruby
Raw Normal View History

# frozen_string_literal: true
Rails.application.routes.draw do
default_url_options :host => "tsvallender.co.uk"
2023-08-19 14:38:38 +00:00
2023-08-20 11:49:21 +00:00
root "home_pages#index"
2024-03-08 14:52:10 +00:00
get "uses" => "home_pages#uses", as: :uses
2023-10-05 14:24:04 +00:00
get "μposts", to: "microposts#index"
2023-08-20 11:49:21 +00:00
# Users and sessions
resources :users, only: [:new, :create, :show, :edit, :update]
resources :sessions, only: [:index, :new, :create]
delete "log_out", to: "sessions#destroy_session"
2023-08-19 14:38:38 +00:00
get "confirm_email", to: "email_confirmations#confirm"
2023-10-05 18:46:09 +00:00
resources :blog_posts
2023-10-05 18:05:53 +00:00
resources :microposts
2023-10-19 18:56:39 +00:00
resources :tags, only: [:index, :show]
resources :diary_entries, except: [:destroy]
2023-10-20 09:38:55 +00:00
get "up" => "rails/health#show", as: :rails_health_check
end