mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
add sonarqube
This commit is contained in:
2
app/assets/javascripts/api/v1/sonarqube/issues.js
Normal file
2
app/assets/javascripts/api/v1/sonarqube/issues.js
Normal file
@@ -0,0 +1,2 @@
|
||||
// Place all the behaviors and hooks related to the matching controller here.
|
||||
// All this logic will automatically be available in application.js.
|
||||
3
app/assets/stylesheets/api/v1/sonarqube/issues.scss
Normal file
3
app/assets/stylesheets/api/v1/sonarqube/issues.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the api/v1/sonarqube/issues controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
6
app/controllers/api/v1/sonarqubes/issues_controller.rb
Normal file
6
app/controllers/api/v1/sonarqubes/issues_controller.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class Api::V1::Sonarqubes::IssuesController < ApplicationController
|
||||
def index
|
||||
data = Sonarqube.client.get("/api/issues/search",params)
|
||||
render_ok data
|
||||
end
|
||||
end
|
||||
2
app/helpers/api/v1/sonarqube/issues_helper.rb
Normal file
2
app/helpers/api/v1/sonarqube/issues_helper.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
module Api::V1::Sonarqube::IssuesHelper
|
||||
end
|
||||
Reference in New Issue
Block a user