finished basic route handling taking path and http method into account