'This method is only called when Tribler has started. It enables the other endpoints that are dependent
on a fully started Tribler.'

def start_endpoints(self):

    child_handler_dict = {'search': SearchEndpoint, 'channels': ChannelsEndpoint, 'mychannel': MyChannelEndpoint, 'settings': SettingsEndpoint, 'downloads': DownloadsEndpoint, 'createtorrent': CreateTorrentEndpoint, 'torrents': TorrentsEndpoint, 'debug': DebugEndpoint, 'shutdown': ShutdownEndpoint, 'trustchain': TrustchainEndpoint, 'statistics': StatisticsEndpoint, 'torrentinfo': TorrentInfoEndpoint, 'market': MarketEndpoint, 'wallets': WalletsEndpoint}
    for (path, child_cls) in child_handler_dict.iteritems():
        self.putChild(path, child_cls(self.session))
    self.getChildWithDefault('search', None).events_endpoint = self.events_endpoint
