11 lines
168 B
Ruby
11 lines
168 B
Ruby
|
class CpesController < ApplicationController
|
||
|
def index
|
||
|
@cpes = Cpe.all
|
||
|
end
|
||
|
|
||
|
def show
|
||
|
@cpe = Cpe.find(params[:id])
|
||
|
render json: @cpe.to_json
|
||
|
end
|
||
|
end
|