forked from Trustie/forgeplus
sca fix bug
This commit is contained in:
parent
0db7e28248
commit
594be13d7e
|
|
@ -16,37 +16,37 @@ class Api::V1::Projects::ScaController < Api::V1::BaseController
|
|||
"url": nil,
|
||||
}
|
||||
end
|
||||
render index
|
||||
render :index
|
||||
end
|
||||
|
||||
def scanner #创建扫描
|
||||
@result = Api::V1::Projects::Sca::ScannerService.call(@project, params[:branch])
|
||||
render index
|
||||
render :index
|
||||
end
|
||||
|
||||
def scanner_list #扫描列表
|
||||
@result = Api::V1::Projects::Sca::ScannerListService.call(@project, params[:scan_type], params[:limit], params[:page])
|
||||
render index
|
||||
@result = Api::V1::Projects::Sca::ScannerListService.call(@project, params[:scan_type], params[:limit], params[:page])
|
||||
render :index
|
||||
end
|
||||
|
||||
def scanner_show #扫描详情
|
||||
@result = Api::V1::Projects::Sca::ScannerShowService.call(params[:scan_id])
|
||||
render index
|
||||
render :index
|
||||
end
|
||||
|
||||
def reports #创建报告 ASC SCA SAST
|
||||
@result = Api::V1::Projects::Sca::ReportService.call(params[:scan_type], params[:scan_id])
|
||||
render index
|
||||
render :index
|
||||
end
|
||||
|
||||
def report_list #报告列表
|
||||
@result = Api::V1::Projects::Sca::ReportListService.call(params[:scan_id])
|
||||
render index
|
||||
render :index
|
||||
end
|
||||
|
||||
def report_export #报告导出
|
||||
@result = Api::V1::Projects::Sca::ReportExportService.call(params[:scan_type], params[:scan_id])
|
||||
render index
|
||||
render :index
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
|||
Loading…
Reference in New Issue