2018-11-22 14:58:12 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-22 14:33:08 -05:00
|
|
|
Rails.application.routes.draw do
|
2018-11-28 15:48:37 -05:00
|
|
|
get '/s/452465', to: 'home#event1'
|
|
|
|
get '/s/243898', to: 'home#post1'
|
|
|
|
get '/s/377295', to: 'home#post2'
|
|
|
|
|
2018-11-29 07:37:31 -05:00
|
|
|
get '/events/2018/11/24/' \
|
|
|
|
'otkrytaja-vstrecha-storonnikov-libertarianskoj-partii.html',
|
|
|
|
to: 'home#event1'
|
|
|
|
|
|
|
|
get '/posts/2018/07/27/' \
|
|
|
|
'sformirovan-rukovodjashhij-komitet-ro-lpr-v-permskom-krae.html',
|
|
|
|
to: 'home#post1'
|
|
|
|
|
|
|
|
get '/posts/2018/11/12/' \
|
|
|
|
'sekretar-ro-lpr-v-permskom-krae-byl-zaderzhan-na-4-chasa.html',
|
|
|
|
to: 'home#post2'
|
2018-11-28 15:30:11 -05:00
|
|
|
|
2018-11-29 15:57:57 -05:00
|
|
|
#####
|
|
|
|
|
|
|
|
root to: 'home#show'
|
|
|
|
|
2018-11-29 16:28:20 -05:00
|
|
|
devise_for :users, controllers: {
|
2018-12-03 21:40:12 -05:00
|
|
|
sessions: 'users/sessions',
|
|
|
|
registrations: 'users/registrations',
|
|
|
|
confirmations: 'users/confirmations',
|
|
|
|
passwords: 'users/passwords',
|
|
|
|
unlocks: 'users/unlocks',
|
|
|
|
omniauth_callbacks: 'users/omniauth_callbacks',
|
2018-11-29 16:28:20 -05:00
|
|
|
}
|
2018-11-29 15:57:57 -05:00
|
|
|
|
2018-11-26 09:12:49 -05:00
|
|
|
resources :membership_applications, only: %i[new create]
|
2018-11-29 08:07:20 -05:00
|
|
|
|
2018-11-30 03:47:54 -05:00
|
|
|
resources :passports, only: %i[index show new create] do
|
2018-12-03 08:39:19 -05:00
|
|
|
resources :passport_confirmations,
|
|
|
|
controller: 'passports/passport_confirmations',
|
|
|
|
only: %i[index create]
|
2018-11-30 03:47:54 -05:00
|
|
|
end
|
2018-11-29 20:37:02 -05:00
|
|
|
|
2018-11-29 08:07:20 -05:00
|
|
|
resources :telegram_bot_updates, only: :create
|
2018-11-22 14:33:08 -05:00
|
|
|
end
|