Class: Addresses::CitiesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/addresses/cities_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
# File 'app/controllers/addresses/cities_controller.rb', line 7

def index
  @cities = City.filter(params)
  render json: @cities
end

#showObject



12
13
14
15
# File 'app/controllers/addresses/cities_controller.rb', line 12

def show
  @city = City.find(params[:id])
  render json: @city
end