saschagrunert / webapp.rs

A web application completely written in Rust. 🌍

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Factoring out the RouterService into its own crate?

Boscop opened this issue · comments

I think it would make a lot of sense to factor out the RouterService into its own crate, so that it can be used by other apps.

I think a good API would allow it to be used as conveniently and type-safe as this:

https://github.com/parsonsmatt/purescript-routing-example/blob/master/src/Router.purs

purescript-routing guide

blog post about the above example of using purescript-routing

Yes, I think this would be a feasible addition. I can do that in the near future.