router.js: changed API check
Merge pull request #11 from alemela/hackathon_nodei4

Changed API workflow in router.js