Updated server with routes