mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +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)
|
||||
if (!instance) {
|
||||
res.writeHead(404, {
|
||||
'Content-Type': `text/plain`,
|
||||
})
|
||||
res.end(`${host} not found`)
|
||||
res.status(404).end(`${host} not found`)
|
||||
return
|
||||
}
|
||||
const owner = instance.expand.uid
|
||||
@ -517,8 +514,6 @@ export const instanceService = mkSingleton(
|
||||
await p
|
||||
})
|
||||
|
||||
const getInstanceApiIfExistsById = (id: InstanceId) => instanceApis[id]
|
||||
|
||||
return { getInstanceApiIfExistsById }
|
||||
return {}
|
||||
},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user