Ketty
Ketty
Explore posts from servers
HHono
Created by Ketty on 6/12/2024 in #help
get with params not working
Can someone help me. i have simple code: import { Hono } from "hono"; const app = new Hono(); app.get("/", (c) => c.json("list books")); app.get("/:id", (c) => c.json(get ${c.req.param("id")})); export default app; When try to call api with: curl http://localhost:3000/?id=5 i get response "list books". Without: app.get("/", (c) => c.json("list books")); i get "404 Not Found"
7 replies
CDCloudflare Developers
Created by Ketty on 2/23/2024 in #workers-help
Did someone manage to work with SOAP API from workers?
I got error: ▲ [WARNING] The package "node:fs/promises" wasn't found on the file system but is built into node. Your Worker may throw errors at runtime unless you enable the "nodejs_compat" compatibility flag. Refer to https://developers.cloudflare.com/workers/runtime-apis/nodejs/ for more details. Imported from: - node_modules.pnpm\[email protected]\node_modules\formidable\src\Formidable.js ✘ [ERROR] No matching export in "node-modules-polyfills:crypto" for import "createHash"

node_modules/.pnpm/[email protected]/node_modules/formidable/src/VolatileFile.js:3:9:
3 │ import { createHash } from 'node:crypto';
6 replies