mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-17 02:05:58 +08:00
新增:发布人和状态接口
This commit is contained in:
4
app/views/api/v1/issues/authors/index.json.jbuilder
Normal file
4
app/views/api/v1/issues/authors/index.json.jbuilder
Normal file
@@ -0,0 +1,4 @@
|
||||
json.total_count @authors.total_count
|
||||
json.authors @authors.each do |author|
|
||||
json.partial! 'api/v1/users/simple_user', locals: { user: author}
|
||||
end
|
||||
4
app/views/api/v1/issues/statues/index.json.jbuilder
Normal file
4
app/views/api/v1/issues/statues/index.json.jbuilder
Normal file
@@ -0,0 +1,4 @@
|
||||
json.total_count @statues.total_count
|
||||
json.statues @statues.each do |status|
|
||||
json.(status, :id, :name)
|
||||
end
|
||||
Reference in New Issue
Block a user