alshdavid / crayon-router

Simple framework agnostic UI router for SPAs
MIT License
327 stars 13 forks source link

`res` instead of `req` with svelte example #62

Open malikbenkirane opened 4 years ago

malikbenkirane commented 4 years ago

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) ?

acim commented 4 years ago

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