Soc/config/routes.rb

19 lines
526 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"
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]
end