1234567891011121314151617 |
- # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- Zammad::Application.routes.draw do
- api_path = Rails.configuration.api_path
- # organizations
- match api_path + '/organizations/import_example', to: 'organizations#import_example', via: :get
- match api_path + '/organizations/import', to: 'organizations#import_start', via: :post
- match api_path + '/organizations/search', to: 'organizations#search', via: %i[get post]
- match api_path + '/organizations', to: 'organizations#index', via: :get
- match api_path + '/organizations/:id', to: 'organizations#show', via: :get
- match api_path + '/organizations', to: 'organizations#create', via: :post
- match api_path + '/organizations/:id', to: 'organizations#update', via: :put
- match api_path + '/organizations/:id', to: 'organizations#destroy', via: :delete
- match api_path + '/organizations/history/:id', to: 'organizations#history', via: :get
- end
|