Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setup for routes #1529

Merged
merged 3 commits into from Apr 15, 2024
Merged

feat: setup for routes #1529

merged 3 commits into from Apr 15, 2024

Conversation

KermanX
Copy link
Member

@KermanX KermanX commented Apr 14, 2024

This PR adds a new setup function called setupRoutes, which is a "transformer" of routes. This is quite useful for user to add new pages if they want.

Previously, it might be possible to add new routes via setupRoot, but its not very direct and modifying routes after Router has been created may cause problems.

#1513 will give users the ability to customize the existing pages, but cannot add new pages.

Copy link

netlify bot commented Apr 14, 2024

Deploy Preview for slidev ready!

Name Link
🔨 Latest commit 4b9c21d
🔍 Latest deploy log https://app.netlify.com/sites/slidev/deploys/661b730effae3500088fcc38
😎 Deploy Preview https://deploy-preview-1529--slidev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@KermanX KermanX mentioned this pull request Apr 14, 2024
@KermanX KermanX marked this pull request as ready for review April 14, 2024 09:49
@antfu antfu changed the title feat: setup routes feat: setup for routes Apr 14, 2024
@antfu antfu merged commit 81f48ff into slidevjs:main Apr 15, 2024
24 checks passed
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.

None yet

2 participants