2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2013-08-21 19:16:42 +00:00
|
|
|
Zammad::Application.routes.draw do
|
|
|
|
api_path = Rails.configuration.api_path
|
2013-05-21 22:30:09 +00:00
|
|
|
|
2013-08-21 19:16:42 +00:00
|
|
|
# search
|
2017-11-23 08:09:44 +00:00
|
|
|
match api_path + '/search', to: 'search#search_generic', via: %i[get post]
|
|
|
|
match api_path + '/search/:objects', to: 'search#search_generic', via: %i[get post]
|
2015-04-27 14:15:29 +00:00
|
|
|
end
|