// Restart the NOSE server.
export default function restart() {
    setTimeout(() => process.exit(), 1000)

    return {
        text: "Restarting... This will take a second or two.",
        script: `setTimeout(() => window.location.reload(), 3000)`
    }
}

export const GET = restart