nkbt / component-router

Redux-based component routing solution
https://nkbt.github.io/component-router
MIT License
93 stars 7 forks source link

Adapter for node #92

Closed nkbt closed 8 years ago

nkbt commented 8 years ago

Basically fill store with routes and parse request URL to match one.

nkbt commented 8 years ago

Usage:

app.use((req, res, next) => {
  locationNode({store: req.store, routes: ['/', '/login', '/user']})(req);
  next();
})