mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
Merge branch 'pre_trustie_server' into trustie_server
This commit is contained in:
@@ -127,6 +127,7 @@ Rails.application.routes.draw do
|
||||
|
||||
# blockchain related routes
|
||||
get 'users/blockchain/balance', to: 'users#blockchain_balance'
|
||||
get 'projects/mp_show', to: 'projects#mp_show'
|
||||
post 'users/blockchain/balance_project', to: 'users#blockchain_balance_one_project'
|
||||
post 'users/blockchain/transfer', to: 'users#blockchain_transfer'
|
||||
post 'users/blockchain/exchange', to: 'users#blockchain_exchange'
|
||||
|
||||
@@ -47,6 +47,7 @@ defaults format: :json do
|
||||
end
|
||||
|
||||
member do
|
||||
get :show_by_id
|
||||
resources :journals, module: :issues, only: [:index, :create, :update, :destroy] do
|
||||
member do
|
||||
get :children_journals
|
||||
@@ -55,12 +56,24 @@ defaults format: :json do
|
||||
end
|
||||
end
|
||||
scope module: :issues do
|
||||
resources :issue_tags, except: [:new, :edit]
|
||||
resources :issue_tags, except: [:new, :edit] do
|
||||
collection do
|
||||
get :pm_index
|
||||
end
|
||||
end
|
||||
resources :milestones, except: [:new, :edit]
|
||||
resources :issue_statues, only: [:index], controller: '/api/v1/issues/statues'
|
||||
resources :issue_statues, only: [:index], controller: '/api/v1/issues/statues' do
|
||||
collection do
|
||||
get :pm_index
|
||||
end
|
||||
end
|
||||
resources :issue_authors, only: [:index], controller: '/api/v1/issues/authors'
|
||||
resources :issue_assigners, only: [:index], controller: '/api/v1/issues/assigners'
|
||||
resources :issue_priorities, only: [:index]
|
||||
resources :issue_priorities, only: [:index] do
|
||||
collection do
|
||||
get :pm_index
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# projects文件夹下的
|
||||
@@ -90,8 +103,9 @@ defaults format: :json do
|
||||
end
|
||||
match 'branches/*name', to: "branches#destroy", via: :all
|
||||
|
||||
resources :tags, param: :name, only: [:index, :destroy]
|
||||
match 'tags/*name', to: "tags#destroy", via: :all
|
||||
resources :tags, param: :name, only: [:index, :show, :destroy]
|
||||
delete 'tags/*name', to: "tags#destroy", via: :all
|
||||
get 'tags/*name', to: "tags#show", via: :all
|
||||
|
||||
resources :commits, only: [:index]
|
||||
resources :code_stats, only: [:index]
|
||||
|
||||
Reference in New Issue
Block a user