更改:路由和控制器位置

This commit is contained in:
yystopf 2026-03-23 16:38:08 +08:00
parent 75b0602daf
commit f2bca10cd0
3 changed files with 7 additions and 9 deletions

View File

@ -1,4 +1,4 @@
class Users::ResidentExpertsController < Users::BaseController
class Api::V1::ResidentExpertsController < Api::V1::BaseController
def index
@resident_experts = ResidentExpert.approved.includes(:user)
@resident_experts = @resident_experts.where(expert_category: params[:expert_category]) if params[:expert_category].present?

View File

@ -177,14 +177,6 @@ Rails.application.routes.draw do
post '/blockchain/issue/get_token_num', to: 'users#blockchain_get_issue_token_num'
get '/projects/blockchain/get_unclosed_issue_list', to: 'users#blockchain_get_unclosed_issue_list'
namespace :users do
resources :resident_experts do
collection do
get :current
get :actions
end
end
end
resources :owners, only: [:index, :show]
scope module: :organizations do

View File

@ -70,6 +70,12 @@ defaults format: :json do
end
namespace :v1 do
resources :resident_experts do
collection do
get :current
get :actions
end
end
namespace :projects do
resources :develop_process_pull_requests, only: [:index] do