Sha256: 225366b648d73fc6f80f5c22c3b11d0cde9b856ebf443fef57822804acab40ab
Contents?: true
Size: 713 Bytes
Versions: 1
Compression:
Stored size: 713 Bytes
Contents
PostmanMta::Engine.routes.draw do resources :messages, only: [:show, :create], param: :token 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 :read, 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
postman_mta-0.1.2 | config/routes.rb |