mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01: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
@@ -34,7 +34,9 @@ export default async (ctx, next) => {
|
||||
body: ctx.request.body,
|
||||
files: ctx.request.files as any,
|
||||
query: ctx.query,
|
||||
querystring: ctx.querystring,
|
||||
path: ctx.path,
|
||||
originalPath: ctx.originalPath,
|
||||
params: ctx.params,
|
||||
referer: ctx.request.headers.referer || '',
|
||||
json: (ctx.request.headers.accept || '').includes('application/json'),
|
||||
|
||||
Reference in new issue
Block a user