config/routes.rb in postman_mta-0.1.0 vs config/routes.rb in postman_mta-0.1.1

- old
+ new

@@ -1,8 +1,18 @@ PostmanMta::Engine.routes.draw do - resources :messages, only: [:show, :create] + resources :messages, only: [:show, :create], param: :token - resources :conversations, only: [:index, :show] do + 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 + + resources :routes, only: :index end