core: add querystring and originalPath property on request

This commit is contained in:
undefined committed 2022-11-08 17:21:36 +08:00
1 parent 512a912080
commit 9576d35e21
6 files changed
+23 -18

No files matched your search

+1 -1
View File
@@ -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 };