mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 17:55:56 +08:00
新增:发布人和状态接口
This commit is contained in:
10
app/controllers/api/v1/issues/statues_controller.rb
Normal file
10
app/controllers/api/v1/issues/statues_controller.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class Api::V1::Issues::StatuesController < Api::V1::BaseController
|
||||
|
||||
before_action :require_public_and_member_above, only: [:index]
|
||||
|
||||
# 状态列表
|
||||
def index
|
||||
@statues = IssueStatus.order("position asc")
|
||||
@statues = kaminary_select_paginate(@statues)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user