Add endpoints to open, close index