Open hems opened 8 years ago
Good one, I wonder how it never popped out before. :smile:
Ideally it should be:
ways( "/route", function( req, params, state ) {
// ...
} );
However it should be done, pull requests wellcome.
In this meanwhile, you can do something:
// pseudo code here (not tested)
var addressbar = require('ways-addressbar');
ways.use(addressbar);
ways( "/route", function( req ) {
console.log(addressbar.history);
} );
ways.go('/route', {hi: true});
Something should be there. :)
i'm not using addressbar.... in that case ?
How can i retrieve the state associated with a request?
For instance: