handle options requests in middleware.
api endpoint to fetch single profile.