import { error } from '@sveltejs/kit';
import type { RequestHandler } from './$types';

/**
 * POST /api/auth/register
 *
 * Username/password registration has been replaced by OAuth2 (Google & GitHub).
 * This endpoint is no longer supported.
 */
export const POST: RequestHandler = async () => {
	error(410, 'Username/password registration is no longer supported. Please sign in with Google or GitHub.');
};
