mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
新增: 项目详情
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
class Api::V1::BaseController < ApplicationController
|
||||
|
||||
include Api::ProjectHelper
|
||||
|
||||
skip_before_action :user_setup
|
||||
end
|
||||
11
app/controllers/api/v1/projects_controller.rb
Normal file
11
app/controllers/api/v1/projects_controller.rb
Normal 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
|
||||
@@ -1,6 +0,0 @@
|
||||
class Api::V1::ReposController < Api::V1::BaseController
|
||||
|
||||
def index
|
||||
render_ok
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user