can secure or expose different endpoints