Sha256: 9c991a6d231a9ac6e930d3c58c6a967a851b078f114b0119dc9f06bef25c6d25

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

require_dependency "taiwan_city/application_controller"

module TaiwanCity
  class DataController < ApplicationController
    def show
      data = TaiwanCity.list(params[:id])
      render json: data, layout: nil
    end

    def index
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
taiwan_city-0.0.4 app/controllers/taiwan_city/data_controller.rb
taiwan_city-0.0.3 app/controllers/taiwan_city/data_controller.rb