mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: add querystring and originalPath property on request
This commit is contained in:
1 parent
512a912080
commit
9576d35e21
6 files changed
+23
-18
No files matched your search
@@ -107,7 +107,7 @@ class ApiHandler extends Handler {
|
||||
}
|
||||
|
||||
async get() {
|
||||
const q = decodeURIComponent(this.ctx.request.querystring);
|
||||
const q = decodeURIComponent(this.request.querystring);
|
||||
if (q === 'schema') {
|
||||
this.response.type = 'application/json';
|
||||
this.response.body = { schema: schemaStr };
|
||||
|
||||
Reference in new issue
Block a user