import { redirect } from "next/navigation"

/**
 * Catch-all route for legacy /app/* URLs
 * Redirects to the corresponding route without the /app prefix
 */
export default function LegacyAppCatchAll({ params }: { params: { slug: string[] } }) {
  const newPath = `/${params.slug.join("/")}`
  redirect(newPath)
}
