fixed api endpoints in extension