Open oak11 opened 8 years ago
{'server_url': 'kinto.notmyidea.org'}
{'serverurls': { '/_': 'kinto.notmyidea.org', 'bucket/*': 'another.server.org', 'bucket/collection': 'kinto.notmyidea.org', }}
// Register a userURL for a specific bucket and collection: registerServerURL("http://myserver", "mybucket", "mycollection")
registerServerURL("http://myserver") // should be equivalent to registerServerURL("http://myserver", "", "")
retrieveServerURL("mybucket", "mycollection")
// check if there is an entry for mybucket/mycollection then mybucket/* then /mycollection then */
{'server_url': 'kinto.notmyidea.org'}
{'serverurls': { '/_': 'kinto.notmyidea.org', 'bucket/*': 'another.server.org', 'bucket/collection': 'kinto.notmyidea.org', }}
// Register a userURL for a specific bucket and collection: registerServerURL("http://myserver", "mybucket", "mycollection")
registerServerURL("http://myserver") // should be equivalent to registerServerURL("http://myserver", "", "")
retrieveServerURL("mybucket", "mycollection")
// check if there is an entry for mybucket/mycollection then mybucket/* then /mycollection then */