diff --git a/bin/update.ts b/bin/update.ts index c6d979d..efcdbc5 100644 --- a/bin/update.ts +++ b/bin/update.ts @@ -3,7 +3,7 @@ import { $ } from "bun" import restart from "./restart" -export default async function () { +export default async function update() { if (process.env.NODE_ENV !== "production") { return { error: "Can only update in production." } } @@ -16,4 +16,6 @@ export default async function () { } else { return restart() } -} \ No newline at end of file +} + +export const GET = update \ No newline at end of file