mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
Github Oauth,支持自动转换config.ini配置
This commit is contained in:
1 parent
5707f973d7
commit
8476eac3b4
17 files changed
+240
-109
No files matched your search
@@ -133,6 +133,7 @@ class Handler {
|
||||
files: ctx.request.files,
|
||||
query: ctx.query,
|
||||
path: ctx.path,
|
||||
referer: ctx.request.headers.referer || '/',
|
||||
};
|
||||
this.response = {
|
||||
body: '',
|
||||
@@ -348,6 +349,7 @@ class Handler {
|
||||
}
|
||||
|
||||
async function handle(ctx, HandlerClass, permission) {
|
||||
global.Hydro.stat.reqCount++;
|
||||
const h = new HandlerClass(ctx);
|
||||
try {
|
||||
const method = ctx.method.toLowerCase();
|
||||
|
||||
Reference in new issue
Block a user