data_importer/app/controllers/cpes_controller.rb
2022-04-19 02:37:27 -05:00

13 lines
230 B
Ruby

# frozen_string_literal: true
class CpesController < ApplicationController
def index
@cpes = Cpe.all
render json: @cpes.to_json
end
def show
@cpe = Cpe.find(params[:id])
render json: @cpe.to_json
end
end