added rest end point to unpublish page