title | layout |
---|---|
Hono Github Issue 3254 |
https://github.com/honojs/hono/3254
Provided solution here https://github.com/honojs/hono/issues/3254#issuecomment-22794941300
app.get(
"/slice/:acct",
(c) => c.text(`acct is ${c.req.param("acct").slice(1)}`),
);
// or
app.get(
"/regex/slice/:acct{@.+}",
(c) => c.text(`acct is ${c.req.param("acct").slice(1)}`),
);
To clone:
git clone https://github.com/rjoydip/oss-issue-fix-collection.git
cd oss-issue-fix-collection/honojs/hono/github/3254
To run:
deno task dev
To test:
deno test
To benchmark:
deno bench