defaultRoute -> defaultResource

This commit is contained in:
Lachlan Kermode
2018-12-07 13:02:50 +00:00
parent 8a5bce0842
commit 41e2ba8299
8 changed files with 46 additions and 36 deletions

View File

@@ -48,7 +48,14 @@ class Fetcher {
*/
this.blueprints = this._indexDbForBlueprints()
.then(allUrls => {
const supportedUrls = allUrls.filter(url => url.startsWith(this.id))
const allParts = allUrls.reduce((acc, url) => {
if (url.startsWith(this.id)) {
const parts = url.split('/')
acc.push([ parts[1], parts[2] ])
return acc
}
}, [])
console.log(allParts)
return {}
})