the main server file thing with REST PUT and GET