|
@ -87,15 +87,17 @@ Rails.application.routes.draw do |
|
|
get '/explore', to: 'directories#index', as: :explore |
|
|
get '/explore', to: 'directories#index', as: :explore |
|
|
get '/explore/:id', to: 'directories#show', as: :explore_hashtag |
|
|
get '/explore/:id', to: 'directories#show', as: :explore_hashtag |
|
|
|
|
|
|
|
|
get '/settings', to: redirect('/settings/preferences') |
|
|
|
|
|
|
|
|
get '/settings', to: redirect('/settings/profile') |
|
|
|
|
|
|
|
|
namespace :settings do |
|
|
namespace :settings do |
|
|
resource :profile, only: [:show, :update] |
|
|
resource :profile, only: [:show, :update] |
|
|
resource :preferences, only: [:show, :update] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get :preferences, to: redirect('/settings/preferences/appearance') |
|
|
|
|
|
|
|
|
namespace :preferences do |
|
|
namespace :preferences do |
|
|
resource :appearance, only: [:show, :update], controller: :appearance |
|
|
resource :appearance, only: [:show, :update], controller: :appearance |
|
|
resource :notifications, only: [:show, :update] |
|
|
resource :notifications, only: [:show, :update] |
|
|
|
|
|
resource :other, only: [:show, :update], controller: :other |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
resource :import, only: [:show, :create] |
|
|
resource :import, only: [:show, :create] |
|
|