Merge branch 'standalone_develop' into pre_trustie_server

This commit is contained in:
2023-04-14 15:41:21 +08:00
53 changed files with 913 additions and 110 deletions

View File

@@ -168,6 +168,17 @@ Rails.application.routes.draw do
end
end
get :recommend, on: :collection
resources :is_pinned_projects, only: [:index, :update] do
collection do
post :pin
end
end
member do
post :update_news
post :update_memo
post :update_other
get :languages
end
end
end
@@ -523,7 +534,7 @@ Rails.application.routes.draw do
get 'readme'
get 'languages'
get 'archive/:archive', to: 'repositories#archive', as: "archive", constraints: { archive: /.+/, format: /(zip|gzip)/ }
get 'raw', to: 'repositories#raw', as: "raw"
get 'raw/*filepath', to: 'repositories#raw', as: "raw", constraints: { filepath: /.+/}
end
end

View File

@@ -9,3 +9,4 @@
- [mailers, 101]
- [cache, 10]
- [message, 20]
- [webhook, 20]