Modified the displayEndpoint method in the backend so that it can accept GET, POST, PUT, and DELETE. If it is PUT or POST, it will check the input field and make sure it is valid.