# 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