Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

feat(kit): allow addServerHandler to use method suffix of the file path#5465

Merged
pi0 merged 2 commits intonuxt:mainfrom
huang-julien:feat/enhance-server-handler-helpers
Jun 15, 2022
Merged

feat(kit): allow addServerHandler to use method suffix of the file path#5465
pi0 merged 2 commits intonuxt:mainfrom
huang-julien:feat/enhance-server-handler-helpers

Conversation

@huang-julien
Copy link
Member

🔗 Linked issue

resolve nuxt/nuxt#14003 , opened after nitrojs/nitro#252 being closed

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

allow the addServerHandler() helper to use the method suffix of the file path, NitroEventHandler.method will overwrite the method if defined

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented Jun 14, 2022

Deploy Preview for nuxt3-docs ready!

Name Link
🔨 Latest commit 3e98b1f
🔍 Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62a9030418143500087708e9
😎 Deploy Preview https://deploy-preview-5465--nuxt3-docs.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 settings.

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pi0 pi0 merged commit ccec0a3 into nuxt:main Jun 15, 2022
@pi0 pi0 mentioned this pull request Jul 11, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Kit] Support the method suffix in addServerHandler

3 participants