17 lines
1 KiB
Ruby
17 lines
1 KiB
Ruby
# Copyright (C) 2012-2021 Zammad Foundation, http://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
|