2022-04-07 18:15:21 -05:00
|
|
|
class CnasController < ApplicationController
|
|
|
|
def index
|
|
|
|
@cnas = Cna.all
|
|
|
|
end
|
|
|
|
|
|
|
|
def show
|
|
|
|
@cna = Cna.find(params[:id])
|
|
|
|
render json: @cna.to_json
|
|
|
|
end
|
|
|
|
|
|
|
|
def show_for_cna
|
|
|
|
@cna = Cna.find_by_cna_id(params[:cna_id])
|
|
|
|
render json: @cna.to_json
|
|
|
|
end
|
2022-04-07 18:26:42 -05:00
|
|
|
|
|
|
|
def show_for_orgname
|
|
|
|
@cna = Cna.find_by(:organization_name => params[:organization_name])
|
|
|
|
render json: @cna.to_json
|
|
|
|
end
|
2022-04-07 18:15:21 -05:00
|
|
|
end
|