publish endpoint