search.rb 344 B

123456789
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. Zammad::Application.routes.draw do
  3. api_path = Rails.configuration.api_path
  4. # search
  5. match api_path + '/search', to: 'search#search_generic', via: %i[get post]
  6. match api_path + '/search/:objects', to: 'search#search_generic', via: %i[get post]
  7. end