mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
Merge pull request 'Pm issue新增 link_index 接口' (#182) from KingChan/forgeplus:pm_project_develop into pm_project_develop
This commit is contained in:
@@ -20,11 +20,12 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
||||
end
|
||||
|
||||
def link_index
|
||||
|
||||
object_issues = Issue.includes(:pm_links).where( pm_project_id: params[:pm_project_id], root_id: nil ).where.not(pm_links: { linkable_id: params[:id] } )
|
||||
@issues = kaminari_paginate(object_issues)
|
||||
render 'api/v1/issues/index'
|
||||
end
|
||||
|
||||
|
||||
|
||||
def show
|
||||
@issue.associate_attachment_container
|
||||
render 'api/v1/issues/show'
|
||||
|
||||
@@ -9,6 +9,10 @@ defaults format: :json do
|
||||
get :tags
|
||||
get :statues
|
||||
end
|
||||
member do
|
||||
get :link_index
|
||||
end
|
||||
|
||||
resources :issue_links
|
||||
|
||||
resources :journals do
|
||||
|
||||
Reference in New Issue
Block a user