remove non-required functions from singleController and rename it to endpointController