types: Abstract inline interfaces to @plunk/types
This commit is contained in:
@@ -4,10 +4,7 @@ import {notFound} from 'next/navigation';
|
||||
|
||||
export const revalidate = false;
|
||||
|
||||
export async function GET(
|
||||
_req: Request,
|
||||
props: {params: Promise<{slug?: string[]}>},
|
||||
) {
|
||||
export async function GET(_req: Request, props: {params: Promise<{slug?: string[]}>}) {
|
||||
const params = await props.params;
|
||||
const page = source.getPage(params.slug);
|
||||
if (!page) notFound();
|
||||
|
||||
Reference in New Issue
Block a user