Closed imblowfish closed 2 months ago
Whoops, my bad Found in the documentation https://fresh.deno.dev/docs/concepts/routes that route parameters should be rewritten to
export default async function Home(req: Request, ctx: RouteContext) {
console.log(ctx.data);
}
Fresh version 1.6.8 Deno version 1.43.5
Hello, I tried to do the same thing as in this blog https://deno.com/blog/setup-auth-with-fresh
And my code looks like this
And in the result I see that
props.data
isundefined
But if I'll remove
async
from theHome
like this:then I can see
{ isAllowed: false }
as expected