11 lines
199 B
Ruby
11 lines
199 B
Ruby
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
|