17 lines
308 B
Ruby
17 lines
308 B
Ruby
|
class GithubPocsController < ApplicationController
|
||
|
def index
|
||
|
@pocs = GithubPoc.all
|
||
|
end
|
||
|
|
||
|
def show
|
||
|
@poc = GithubPoc.find_by(:id => params[:id])
|
||
|
render json: @poc.to_json
|
||
|
end
|
||
|
|
||
|
def show_for_cve
|
||
|
@poc = GithubPoc.where(:cve_id => params[:cve_id])
|
||
|
render json: @poc.to_json
|
||
|
end
|
||
|
|
||
|
end
|