nose-pluto/bin/reboot.ts
2025-10-01 11:21:05 -07:00

11 lines
306 B
TypeScript

export default async function reboot() {
setTimeout(async () => await Bun.$`reboot`, 1000)
console.log("REBOOTING...")
return {
text: "Rebooting... This will take about 10 seconds.",
script: `setTimeout(() => window.location.reload(), 10000)`
}
}
export const GET = reboot