2018-01-02 17:19:25 +00:00
|
|
|
Rails.application.routes.draw do
|
2018-01-29 18:09:30 +00:00
|
|
|
root 'application#index'
|
|
|
|
|
|
|
|
get 'login/new', to: 'login#new'
|
|
|
|
post 'login', to: 'login#create'
|
2018-02-26 22:08:21 +00:00
|
|
|
delete 'login/logout', to: 'login#delete'
|
|
|
|
|
2018-02-25 01:10:37 +00:00
|
|
|
get 'markdown', to: 'application#markdown'
|
2018-01-29 18:09:30 +00:00
|
|
|
|
2018-07-02 22:07:06 +00:00
|
|
|
get '/sites/:site_id/public/:type/:basename', to: 'sites#send_public_file'
|
|
|
|
|
2018-09-28 14:34:37 +00:00
|
|
|
resources :invitadxs, only: [:create, :show] do
|
|
|
|
end
|
|
|
|
|
2018-09-27 18:17:10 +00:00
|
|
|
resources :sites, only: [:index, :show], constraints: { site_id: /[^\/]+/, id: /[^\/]+/ } do
|
2018-01-29 18:09:30 +00:00
|
|
|
resources :posts
|
2018-05-08 21:57:11 +00:00
|
|
|
resources :templates
|
2018-09-28 14:34:37 +00:00
|
|
|
resources :invitadxs, only: [:index, :new] do
|
|
|
|
get :confirmation, to: 'invitadxs#confirmation'
|
|
|
|
end
|
2018-09-28 15:00:50 +00:00
|
|
|
get :'invitadxs/login/new', to: 'login#new'
|
|
|
|
post :'invitadxs/login', to: 'login#create'
|
2018-02-09 21:28:27 +00:00
|
|
|
|
|
|
|
get 'i18n', to: 'i18n#index'
|
|
|
|
get 'i18n/edit', to: 'i18n#edit'
|
|
|
|
post 'i18n', to: 'i18n#update'
|
2018-02-20 17:47:11 +00:00
|
|
|
|
|
|
|
post 'enqueue', to: 'sites#enqueue'
|
|
|
|
get 'build_log', to: 'sites#build_log'
|
2018-04-27 20:24:28 +00:00
|
|
|
post 'reorder_posts', to: 'sites#reorder_posts'
|
2018-01-29 18:09:30 +00:00
|
|
|
end
|
2018-01-02 17:19:25 +00:00
|
|
|
end
|