Sha256: e0af80ce380373f39217a59ada39c9fc7078eba27c370082d0223e637903608b
Contents?: true
Size: 913 Bytes
Versions: 3
Compression:
Stored size: 913 Bytes
Contents
PostmanMta::Engine.routes.draw do resources :messages, only: [:show, :create], param: :token do resources :attachments, only: :show, param: :uuid end resources :conversations, only: [:index, :show, :destroy] do [:inbox, :sent, :spam, :trash].each do |folder| match folder, on: :collection, via: :get end match :starred, on: :collection, via: :get, to: 'conversations#index' match :search, on: :collection, via: :get match :read, on: :collection, via: [:put, :patch] match :unread, on: :collection, via: [:put, :patch] match :move, on: :collection, via: [:put, :patch] resources :labels, only: [:create, :destroy] resources :tags, only: [:create, :destroy] end namespace :stats do resources :messages, only: [] do match :unread, on: :collection, via: :get end end resources :routes, only: :index resources :domains, only: :index end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
postman_mta-0.2.0 | config/routes.rb |
postman_mta-0.1.9 | config/routes.rb |
postman_mta-0.1.8 | config/routes.rb |