refactored the web server to include multiple get/post requests in the same controller; added id placeholder support