chat.rb 462 B

12345678910
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. match api_path + '/chats', to: 'chats#index', via: :get
  4. match api_path + '/chats/:id', to: 'chats#show', via: :get
  5. match api_path + '/chats', to: 'chats#create', via: :post
  6. match api_path + '/chats/:id', to: 'chats#update', via: :put
  7. match api_path + '/chats/:id', to: 'chats#destroy', via: :delete
  8. end