pico-router
pico-router copied to clipboard
`res` instead of `req` with svelte example
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) ?
It is req.redirect and req.mount. I made PR.