2023-08-15 13:50:39 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-08-08 16:48:09 +00:00
|
|
|
Rails.application.routes.draw do
|
2023-09-17 11:24:54 +00:00
|
|
|
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-08 16:48:09 +00:00
|
|
|
|
2023-08-20 11:49:21 +00:00
|
|
|
# Users and sessions
|
2023-08-18 18:08:49 +00:00
|
|
|
resources :users, only: [:new, :create, :show, :edit, :update]
|
2023-09-17 13:59:06 +00:00
|
|
|
resources :sessions, only: [:index, :new, :create]
|
2023-08-15 13:50:39 +00:00
|
|
|
delete "log_out", to: "sessions#destroy_session"
|
2023-08-19 14:38:38 +00:00
|
|
|
get "confirm_email", to: "email_confirmations#confirm"
|
2023-09-17 13:59:06 +00:00
|
|
|
|
2023-10-05 18:46:09 +00:00
|
|
|
resources :blog_posts
|
2024-01-06 10:29:41 +00:00
|
|
|
resources :learning_goals
|
2023-10-05 18:05:53 +00:00
|
|
|
resources :microposts
|
2023-10-19 18:56:39 +00:00
|
|
|
resources :tags, only: [:index, :show]
|
2023-12-29 14:27:09 +00:00
|
|
|
resources :diary_entries, except: [:destroy]
|
2023-10-20 09:38:55 +00:00
|
|
|
|
|
|
|
get "up" => "rails/health#show", as: :rails_health_check
|
2023-08-08 16:48:09 +00:00
|
|
|
end
|