remove redirection to old /start-instance

pull/76/head
Sven Sauleau 2023-01-11 17:43:10 +00:00
rodzic 26fbb26cec
commit 59ea1eb90b
2 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -56,8 +56,6 @@ export async function main(context: EventContext<Env, any, any>) {
url.pathname === '/api/v1/timelines/public' ||
url.pathname === '/api/v1/custom_emojis' ||
url.pathname === '/.well-known/webfinger' ||
url.pathname === '/start-instance' || // Access is required by the handler
url.pathname === '/start-instance-test-access' || // Access is required by the handler
url.pathname === '/api/v1/trends/statuses' ||
url.pathname === '/api/v1/trends/links' ||
url.pathname.startsWith('/ap/') // all ActivityPub endpoints

Wyświetl plik

@ -21,10 +21,6 @@ export const instanceLoader = loader$<
const response = await instance.handleRequest('', platform.DATABASE, env)
const results = await response.text()
const json = JSON.parse(results) as InstanceConfig
if (!json.title) {
// If there is no title set then we have not configured the instance
throw redirect(302, '/start-instance')
}
return json
})