refactored how requests come in to get body content & fixed post and put handlers to not be hardcoded