mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
Merge branch 'pre_trustie_server' into trustie_server
# Conflicts: # lib/tasks/update_educoder_user.rake
This commit is contained in:
@@ -6,6 +6,6 @@ gitea_config = config[:gitea].symbolize_keys!
|
||||
$gitea_client = Gitea::Api::Client.new({
|
||||
domain: gitea_config[:domain],
|
||||
base_url: gitea_config[:base_url],
|
||||
username: gitea_config[:username],
|
||||
password: gitea_config[:password]
|
||||
username: gitea_config[:access_key_id],
|
||||
password: gitea_config[:access_key_secret]
|
||||
})
|
||||
@@ -258,6 +258,7 @@ Rails.application.routes.draw do
|
||||
post :attendance
|
||||
get :system_update
|
||||
get :me
|
||||
get :info
|
||||
get :list
|
||||
post :sync_token
|
||||
post :sync_gitea_pwd
|
||||
|
||||
@@ -2,7 +2,15 @@ defaults format: :json do
|
||||
namespace :api do
|
||||
namespace :v1 do
|
||||
scope ':owner' do
|
||||
resource :users, path: '/', only: [:show, :update, :edit, :destroy]
|
||||
resource :users, path: '/', only: [:show, :update, :edit, :destroy] do
|
||||
collection do
|
||||
get :send_email_vefify_code
|
||||
post :check_password
|
||||
post :check_email
|
||||
post :check_email_verify_code
|
||||
patch :update_email
|
||||
end
|
||||
end
|
||||
scope module: :users do
|
||||
resources :projects, only: [:index]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user