import type { APIRoute } from 'astro';
import { clearAdminSession } from '../../../lib/adminAuth';

export const POST: APIRoute = async (context) => {
  clearAdminSession(context);

  return context.redirect('/admin/login/', 302);
};
