import { createDefine } from "fresh";
import { clearToken, makeSuccessResponse } from "utils/server.ts";

const define = createDefine<Record<never, never>>();

export const handler = define.handlers({
  GET(_ctx) {
    const successResponse = makeSuccessResponse(true);
    clearToken(successResponse);
    return successResponse;
  },
});
