Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Jun 20, 2025

Based on the idea from #1103 @productdevbook ❤️

This PR adds a simple way to define meta attached to routes, which can be either via defineHandler({ handler, meta }) or app.on(..., { meta }).

Meta is accessible from event.context.matchedRoute.meta also app._routes

@codecov
Copy link

codecov bot commented Jun 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 20, 2025

Deploying h3dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 23008e5
Status: ✅  Deploy successful!
Preview URL: https://aef40a36.h3dev.pages.dev
Branch Preview URL: https://feat-route-meta.h3dev.pages.dev

View logs

@pi0 pi0 mentioned this pull request Jun 20, 2025
@pi0 pi0 merged commit 207b350 into main Jun 20, 2025
5 checks passed
@pi0 pi0 deleted the feat/route-meta branch June 20, 2025 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant