fp/services/next/app/vods/[safeDateOrUUID]/page.tsx

17 lines
532 B
TypeScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
2024-07-10 22:11:18 +00:00
import VodPage from '@/app/components/vod-page';
2025-01-11 03:10:04 +00:00
import { IVodPageProps, getVodFromSafeDateOrUUID } from '@/app/lib/vods';
2024-01-20 16:16:14 +00:00
import { notFound } from 'next/navigation';
/**
* This route exists as backwards compatibility for Futureporn 0.0.0 which was on neocities
* @see https://www.w3.org/Provider/Style/URI
*/
2025-01-11 03:10:04 +00:00
export default async function Page({ params: { safeDateOrUUID, slug } }: IVodPageProps) {
const vod = await getVodFromSafeDateOrUUID(safeDateOrUUID);
2024-01-20 16:16:14 +00:00
if (!vod) notFound();
return <VodPage vod={vod} />
}