mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
将monaco-editor作为在线IDE编辑器
This commit is contained in:
1 parent
4c53fc8146
commit
53a6dbeb1a
9 files changed
+81
-134
No files matched your search
@@ -44,10 +44,7 @@ MIDDLEWARE(async (ctx, next) => {
|
||||
}
|
||||
}
|
||||
};
|
||||
ctx.back = () => {
|
||||
console.log(122143);
|
||||
ctx.redirect(ctx.request.headers.referer || '/');
|
||||
};
|
||||
ctx.back = () => ctx.redirect(ctx.request.headers.referer || '/');
|
||||
ctx.csrf_token = await token.add(token.TYPE_CSRF_TOKEN, 600, ctx.path);
|
||||
await next();
|
||||
if (ctx.session.sid)
|
||||
|
||||
Reference in new issue
Block a user