A simple router for web applications and rest services