Updated server and routes file