We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impress - 3.0.11 , node - v20.9.0
Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:44 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T8103 arm64
i created a hook file /application/api/invokehook.js hook code:
({ router({ method, args, verb, headers }) { const ip = context.client.ip; console.log({ method, args, ip, verb, headers }); return {}; }, });
when querying localhost:8001/api/invokehook I get a json response
{"type": "callback", "id":0, "error":{"message": "Not Found", "code":404}}
described above
I expected to be able to call the hook using HTTP requests
the screenshot shows a variant that started working
I haven't figured out why utit.invokehook.default is needed, so for now this is the variant of fix implementation
here is a link to the original code https://github.com/metarhia/impress/blob/4cabe81e1cef6870a10d7c7b020f8618db3bdbf3/lib/application.js#L182C6-L182C6
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Impress and Node.js versions
impress - 3.0.11 , node - v20.9.0
Platform
Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:44 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T8103 arm64
Describe the bug
i created a hook file /application/api/invokehook.js
hook code:
when querying localhost:8001/api/invokehook I get a json response
To Reproduce
described above
Expected behavior
I expected to be able to call the hook using HTTP requests
Screenshots
Additional context
the screenshot shows a variant that started working
I haven't figured out why utit.invokehook.default is needed, so for now this is the variant of fix implementation
here is a link to the original code https://github.com/metarhia/impress/blob/4cabe81e1cef6870a10d7c7b020f8618db3bdbf3/lib/application.js#L182C6-L182C6
The text was updated successfully, but these errors were encountered: