data_importer/app/controllers/cpes_controller.rb

14 lines
230 B
Ruby
Raw Permalink Normal View History

2022-04-19 02:37:27 -05:00
# frozen_string_literal: true
2022-04-04 13:18:03 -05:00
class CpesController < ApplicationController
def index
@cpes = Cpe.all
render json: @cpes.to_json
2022-04-04 13:18:03 -05:00
end
def show
@cpe = Cpe.find(params[:id])
render json: @cpe.to_json
end
end