新增: 用户项目列表以及helper方法

This commit is contained in:
2022-06-23 12:19:03 +08:00
parent d14bf35ca1
commit 5d0849a148
7 changed files with 66 additions and 13 deletions

View 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