新增: 项目详情

This commit is contained in:
2022-06-22 19:08:14 +08:00
parent aefd6c08dc
commit d7dd3901b8
11 changed files with 125 additions and 10 deletions

View File

@@ -1,2 +1,6 @@
class Api::V1::BaseController < ApplicationController
include Api::ProjectHelper
skip_before_action :user_setup
end

View File

@@ -0,0 +1,11 @@
class Api::V1::ProjectsController < Api::V1::BaseController
before_action :load_project, only: [:show]
def index
render_ok
end
def show
@result_object = Api::V1::Projects::GetService.call(@project, current_user.gitea_token)
end
end

View File

@@ -1,6 +0,0 @@
class Api::V1::ReposController < Api::V1::BaseController
def index
render_ok
end
end