pico-router icon indicating copy to clipboard operation
pico-router copied to clipboard

`res` instead of `req` with svelte example

Open malikbenkirane opened this issue 5 years ago • 1 comments

Hi,

https://github.com/alshdavid/crayon/blob/0803146781fa2f9e5d57e05a6044a52b5643e211/examples/svelte/svelte-animated/src/main.js#L22

Shouldn't it be req.redirect instead of res.redirect ?

Same thing for app.path with res.mount.

Or should it be (res, req) => instead of (req, res) ?

malikbenkirane avatar Jun 11 '20 10:06 malikbenkirane

It is req.redirect and req.mount. I made PR.

acim avatar Aug 18 '20 21:08 acim