Change Forum Url

This commit is contained in:
sylor_huang@126.com 2020-10-15 11:27:54 +08:00
parent e9c118fb77
commit 61e7091ece
1 changed files with 217 additions and 217 deletions

View File

@ -75,15 +75,15 @@ Rails.application.routes.draw do
post :plus post :plus
end end
end end
resources :sync_forge, only: [:create] do # resources :sync_forge, only: [:create] do
collection do # collection do
post :sync_users # post :sync_users
post :sync_range_projects # post :sync_range_projects
end # end
end # end
resources :composes do # resources :composes do
resources :compose_projects, only: [:create, :destroy] # resources :compose_projects, only: [:create, :destroy]
end # end
resources :attachments do resources :attachments do
member do member do
post :preview_attachment post :preview_attachment
@ -96,31 +96,31 @@ Rails.application.routes.draw do
get 'home/search' get 'home/search'
get 'main/first_stamp' get 'main/first_stamp'
get 'search', to: 'searchs#index' # get 'search', to: 'searchs#index'
put 'commons/hidden', to: 'commons#hidden' # put 'commons/hidden', to: 'commons#hidden'
put 'commons/unhidden', to: 'commons#unhidden' # put 'commons/unhidden', to: 'commons#unhidden'
delete 'commons/delete', to: 'commons#delete' # delete 'commons/delete', to: 'commons#delete'
resources :issues, except: [:index, :new,:create, :update, :edit, :destroy] do # resources :issues, except: [:index, :new,:create, :update, :edit, :destroy] do
resources :journals, only: [:index, :create, :destroy, :edit, :update] do # resources :journals, only: [:index, :create, :destroy, :edit, :update] do
member do # member do
get :get_children_journals # get :get_children_journals
end # end
end # end
resources :issue_times, only: [:create] do # resources :issue_times, only: [:create] do
collection do # collection do
post :end_work # post :end_work
end # end
end # end
resources :issue_depends, only: [:create, :destroy] # resources :issue_depends, only: [:create, :destroy]
end # end
resources :project_categories, only: [:index, :show] do # resources :project_categories, only: [:index, :show] do
get :group_list, on: :collection # get :group_list, on: :collection
end # end
resources :project_languages, only: [:index, :show] # resources :project_languages, only: [:index, :show]
resources :ignores, only: [:index, :show] # resources :ignores, only: [:index, :show]
resources :licenses, only: [:index, :show] # resources :licenses, only: [:index, :show]
resources :watchers, only: [:index] do resources :watchers, only: [:index] do
collection do collection do
@ -129,21 +129,21 @@ Rails.application.routes.draw do
get :check_watch get :check_watch
end end
end end
resources :projects do # resources :projects do
resources :praise_tread, only: [:index] do # resources :praise_tread, only: [:index] do
collection do # collection do
post :like # post :like
delete :unlike # delete :unlike
get :check_like # get :check_like
end # end
end # end
collection do # collection do
post :migrate # post :migrate
get :group_type_list # get :group_type_list
get :recommend # get :recommend
end # end
end # end
resources :accounts do resources :accounts do
@ -219,7 +219,7 @@ Rails.application.routes.draw do
end end
end end
resources :users_for_private_messages, only: [:index] # resources :users_for_private_messages, only: [:index]
resources :files, only: [:index, :show, :update] do resources :files, only: [:index, :show, :update] do
collection do collection do
@ -238,9 +238,9 @@ Rails.application.routes.draw do
end end
end end
namespace :wechats do # namespace :wechats do
resource :js_sdk_signature, only: [:create] # resource :js_sdk_signature, only: [:create]
end # end
resource :template, only: [:show] resource :template, only: [:show]
resource :setting, only: [:show] resource :setting, only: [:show]
@ -251,190 +251,190 @@ Rails.application.routes.draw do
resources :hot_keywords, only: [:index] resources :hot_keywords, only: [:index]
namespace :weapps do # namespace :weapps do
resource :home, only: [:show] # resource :home, only: [:show]
resource :session, only: [:create] # resource :session, only: [:create]
resource :register, only: [:create] # resource :register, only: [:create]
resource :verification_code, only: [:create] # resource :verification_code, only: [:create]
resource :code_session, only: [:create] # resource :code_session, only: [:create]
resource :verify, only: [:create] # resource :verify, only: [:create]
resource :check_account, only: [:create] # resource :check_account, only: [:create]
resource :unbind_accounts, only: [:show, :destroy] # resource :unbind_accounts, only: [:show, :destroy]
resources :searchs, only: [:index] # resources :searchs, only: [:index]
resources :course_stickies, only: [:create] do # resources :course_stickies, only: [:create] do
post :cancel_sticky, on: :collection # post :cancel_sticky, on: :collection
end # end
resources :shixun_lists, only: [:index] # resources :shixun_lists, only: [:index]
resources :subjects, path: :paths, only: [:index, :create, :update, :edit, :show] # resources :subjects, path: :paths, only: [:index, :create, :update, :edit, :show]
resources :challenges do # resources :challenges do
get :is_play, on: :member # get :is_play, on: :member
end # end
resources :courses, only: [:create, :update, :edit, :show] do # resources :courses, only: [:create, :update, :edit, :show] do
member do # member do
get :shixun_homework_category # get :shixun_homework_category
get :teachers # get :teachers
get :students # get :students
get :course_groups # get :course_groups
get :basic_info # get :basic_info
get :course_activities # get :course_activities
post :change_member_roles # post :change_member_roles
delete :delete_course_teachers # delete :delete_course_teachers
delete :delete_course_students # delete :delete_course_students
end # end
collection do # collection do
get :check_invite_code # get :check_invite_code
end # end
end # end
end # end
# Project Area START # Project Area START
scope "/:owner/:repo" do # scope "/:owner/:repo" do
scope do # scope do
get( # get(
'/activity', # '/activity',
to: 'project_trends#index', # to: 'project_trends#index',
as: :project_activity # as: :project_activity
) # )
end # end
resource :projects, path: '/', except: [:show, :edit] do # resource :projects, path: '/', except: [:show, :edit] do
member do # member do
get :branches # get :branches
get :simple # get :simple
get :watchers, to: 'projects#watch_users' # get :watchers, to: 'projects#watch_users'
get :stargazers, to: 'projects#praise_users' # get :stargazers, to: 'projects#praise_users'
get :members, to: 'projects#fork_users' # get :members, to: 'projects#fork_users'
match :about, :via => [:get, :put, :post] # match :about, :via => [:get, :put, :post]
end # end
end # end
resource :repositories, path: '/', only: [:show, :create, :edit] do # resource :repositories, path: '/', only: [:show, :create, :edit] do
member do # member do
get :archive # get :archive
get :top_counts # get :top_counts
get :entries # get :entries
match :sub_entries, :via => [:get, :put] # match :sub_entries, :via => [:get, :put]
get :commits # get :commits
get :tags # get :tags
post :create_file # post :create_file
put :update_file # put :update_file
delete :delete_file # delete :delete_file
post :repo_hook # post :repo_hook
post :sync_mirror # post :sync_mirror
get :top_counts # get :top_counts
get 'commits/:sha', to: 'repositories#commit', as: 'commit' # get 'commits/:sha', to: 'repositories#commit', as: 'commit'
end # end
end # end
resources :issues do # resources :issues do
collection do # collection do
get :commit_issues # get :commit_issues
get :index_chosen # get :index_chosen
post :clean # post :clean
post :series_update # post :series_update
end # end
member do # member do
post :copy # post :copy
post :close_issue # post :close_issue
post :lock_issue # post :lock_issue
end # end
end # end
resources :pull_requests, :path => :pulls, except: [:destroy] do # resources :pull_requests, :path => :pulls, except: [:destroy] do
member do # member do
post :pr_merge # post :pr_merge
# post :check_merge # # post :check_merge
post :refuse_merge # post :refuse_merge
end # end
collection do # collection do
post :check_can_merge # post :check_can_merge
get :create_merge_infos # get :create_merge_infos
get :get_branches # get :get_branches
end # end
end # end
resources :versions, :path => :milestones do # resources :versions, :path => :milestones do
member do # member do
post :update_status # post :update_status
end # end
end # end
resources :members, :path => :collaborators, only: [:index, :create] do # resources :members, :path => :collaborators, only: [:index, :create] do
collection do # collection do
delete :remove # delete :remove
put :change_role # put :change_role
end # end
end # end
resources :hooks # resources :hooks
resources :forks, only: [:create] # resources :forks, only: [:create]
resources :project_trends, :path => :activity, only: [:index, :create] # resources :project_trends, :path => :activity, only: [:index, :create]
resources :issue_tags, :path => :labels, only: [:create, :edit, :update, :destroy, :index] # resources :issue_tags, :path => :labels, only: [:create, :edit, :update, :destroy, :index]
resources :version_releases, :path => :releases, only: [:index,:new, :create, :edit, :update, :destroy] # resources :version_releases, :path => :releases, only: [:index,:new, :create, :edit, :update, :destroy]
scope module: :projects do # scope module: :projects do
scope do # scope do
get( # get(
'/blob/*id/diff', # '/blob/*id/diff',
to: 'blob#diff', # to: 'blob#diff',
constraints: { id: /.+/, format: false }, # constraints: { id: /.+/, format: false },
as: :blob_diff # as: :blob_diff
) # )
get( # get(
'/blob/*id', # '/blob/*id',
to: 'blob#show', # to: 'blob#show',
constraints: { id: /.+/, format: false }, # constraints: { id: /.+/, format: false },
as: :blob # as: :blob
) # )
delete( # delete(
'/blob/*id', # '/blob/*id',
to: 'blob#destroy', # to: 'blob#destroy',
constraints: { id: /.+/, format: false } # constraints: { id: /.+/, format: false }
) # )
put( # put(
'/blob/*id', # '/blob/*id',
to: 'blob#update', # to: 'blob#update',
constraints: { id: /.+/, format: false } # constraints: { id: /.+/, format: false }
) # )
post( # post(
'/blob/*id', # '/blob/*id',
to: 'blob#create', # to: 'blob#create',
constraints: { id: /.+/, format: false } # constraints: { id: /.+/, format: false }
) # )
end # end
scope do # scope do
get( # get(
'/raw/*id', # '/raw/*id',
to: 'raw#show', # to: 'raw#show',
constraints: { id: /.+/, format: /(html|js)/ }, # constraints: { id: /.+/, format: /(html|js)/ },
as: :raw # as: :raw
) # )
end # end
scope do # scope do
get( # get(
'/blame/*id', # '/blame/*id',
to: 'blame#show', # to: 'blame#show',
constraints: { id: /.+/, format: /(html|js)/ }, # constraints: { id: /.+/, format: /(html|js)/ },
as: :blame # as: :blame
) # )
end # end
scope do # scope do
get( # get(
'/tree/*id', # '/tree/*id',
to: 'tree#show', # to: 'tree#show',
constraints: { id: /.+/, format: /(html|js)/ }, # constraints: { id: /.+/, format: /(html|js)/ },
as: :tree # as: :tree
) # )
end # end
end # end
end # end
# Project Area END # Project Area END
end end