mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
新增: 用户项目列表以及helper方法
This commit is contained in:
7
app/controllers/api/v1/users/projects_controller.rb
Normal file
7
app/controllers/api/v1/users/projects_controller.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class Api::V1::Users::ProjectsController < Api::V1::BaseController
|
||||
before_action :load_observe_user
|
||||
|
||||
def index
|
||||
@projects = kaminari_paginate(@observe_user.projects)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user