bolt.new/app/routes/logout.tsx
2024-09-25 19:54:09 +01:00

11 lines
291 B
TypeScript

import type { LoaderFunctionArgs } from '@remix-run/cloudflare';
import { logout } from '~/lib/.server/sessions';
export async function loader({ request, context }: LoaderFunctionArgs) {
return logout(request, context.cloudflare.env);
}
export default function Logout() {
return '';
}