mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-09 06:12:31 +00:00
Merge branch 'master' of github.com:benallfree/pockethost
This commit is contained in:
commit
1f5c86a7b2
@ -464,10 +464,7 @@ export const instanceService = mkSingleton(
|
|||||||
|
|
||||||
const instance = await getInstance(host)
|
const instance = await getInstance(host)
|
||||||
if (!instance) {
|
if (!instance) {
|
||||||
res.writeHead(404, {
|
res.status(404).end(`${host} not found`)
|
||||||
'Content-Type': `text/plain`,
|
|
||||||
})
|
|
||||||
res.end(`${host} not found`)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const owner = instance.expand.uid
|
const owner = instance.expand.uid
|
||||||
@ -517,8 +514,6 @@ export const instanceService = mkSingleton(
|
|||||||
await p
|
await p
|
||||||
})
|
})
|
||||||
|
|
||||||
const getInstanceApiIfExistsById = (id: InstanceId) => instanceApis[id]
|
return {}
|
||||||
|
|
||||||
return { getInstanceApiIfExistsById }
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user