NanoApi::Engine.routes.draw do
  resources :searches, only: [:show, :new, :create] do
    resources :clicks, only: :show do
      member do
        get :link, :deeplink
      end
    end
  end
  resources :clicks, only: :new
  resources :airlines, only: :index
  resources :ui_events, only: [] do
    collection do
      post :mass_create
    end
  end
  resources :feedbacks, only: :create
  resources :subscribers, only: :create
  get '/week_minimal_prices' => 'minimal_prices#week', as: :week_minimal_prices
  get '/month_minimal_prices' => 'minimal_prices#month', as: :month_minimal_prices
  get '/nearest_cities_prices' => 'minimal_prices#nearest', as: :nearest_cities_prices
  match '/latest_prices' => 'minimal_prices#latest_prices', via: [:get, :post]
  get '/estimated_search_duration' => 'gate_meta#search_duration', as: :estimated_search_duration
  get '/places(_:locale)(.:format)' => 'places#index', as: :places
end

NanoApi::Engine.routes.draw do
  resources :searches, only: [:show, :new, :create] do
    resources :clicks, only: :show do
      member do
        get :link, :deeplink
      end
    end
  end
  resources :clicks, only: :new
  resources :places, only: :index
  resources :airlines, only: :index
  resources :ui_events, only: [] do
    collection do
      post :mass_create
    end
  end
  resources :feedbacks, only: :create
  resources :subscribers, only: :create
  get '/week_minimal_prices' => 'minimal_prices#week', as: :week_minimal_prices
  get '/month_minimal_prices' => 'minimal_prices#month', as: :month_minimal_prices
  get '/nearest_cities_prices' => 'minimal_prices#nearest', as: :nearest_cities_prices
  match '/latest_prices' => 'minimal_prices#latest_prices', via: [:get, :post]
  get '/estimated_search_duration' => 'gate_meta#search_duration', as: :estimated_search_duration
end

Revert "Consider locales in route of Places"
Revert "Consider locales in route of Places"

This reverts commit a0a6592c4dc1fabab4d531f92c1b703b39f89efd.
