.on('/threads/create', match => { console.log('create'); }) .on('/threads/:id', match => { console.log('view); }) .resolve(); i used two paths. it calls /threads/:id also when i connect /threds/create. console ------- create view ---------------- what can i do??
.on('/threads/create', match => {
console.log('create');
})
.on('/threads/:id', match => {
console.log('view);
})
.resolve();
i used two paths.
it calls /threads/:id also when i connect /threds/create.
console -------
create
view
what can i do??