1
0
postdoc/config/routes.rb

21 lines
569 B
Ruby
Raw Normal View History

2020-12-06 20:49:03 +01:00
Rails.application.routes.draw do
root 'mailboxes#index'
resources :mailboxes do
member do
get 'details', to: 'mailboxes#details'
post 'mark_all_as_read', to: 'mailboxes#mark_all_as_read'
post 'clear_mailbox', to: 'mailboxes#clear_mailbox'
end
end
resources :emails, only: [:show] do
member do
get '/preview', to: 'emails#body_preview'
end
end
scope :v3 do
post '/mail/send', to: 'api/emails#create'
end
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
end