Added routing table and implemented 2 endpoints