新增: 分支接口文档

This commit is contained in:
2022-07-15 14:40:35 +08:00
parent 24d83133e7
commit b8d4b15b40
4 changed files with 101 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
class Api::V1::Projects::BranchesController < Api::V1::BaseController
before_action :require_public_and_member_above, only: [:index]
before_action :require_public_and_member_above, only: [:all]
def all
@result_object = Api::V1::Projects::Branches::AllListService.call(@project, current_user&.gitea_token)
@@ -9,7 +9,6 @@ class Api::V1::Projects::BranchesController < Api::V1::BaseController
def create
@result_object = Api::V1::Projects::Branches::CreateService.call(@project, branch_params, current_user&.gitea_token)
puts @result_object
end
private