website/routes/api/serviceworker/is-online.tsx

10 lines
241 B
TypeScript
Raw Normal View History

import { SessionHandlers } from ':src/session/mod.ts'
import { respondApi } from ':src/utils.ts'
export const handler: SessionHandlers = {
POST() {
// Check if server is online
return respondApi<'success', true>('success', true)
},
}