Skip to content

Conversation

@ekas-7
Copy link
Contributor

@ekas-7 ekas-7 commented Oct 14, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

Currently, the VoltAgent Hono server does not support custom, user-defined endpoints. There is no mechanism to integrate custom routes in a way that they are automatically included in the server's startup display or the generated OpenAPI/Swagger documentation. This is detailed in issue #639.

What is the new behavior?

This PR introduces full support for custom endpoints in the VoltAgent Hono server. Key features include:

  • Custom Endpoint Integration: Users can now define and register their own endpoints.
  • Automatic Documentation: Custom endpoints are automatically discovered and included in the Swagger UI and OpenAPI specifications.
  • Enhanced Startup Display: The server's startup log now lists both built-in and newly added custom endpoints.
  • Developer Experience: The implementation is type-safe and error-tolerant for easy endpoint management.

fixes #639

Notes for reviewers

@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2025

🦋 Changeset detected

Latest commit: 6b94756

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@voltagent/server-hono Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

 Replace await import() with static imports in hono-server-provider.ts
@ekas-7
Copy link
Contributor Author

ekas-7 commented Oct 20, 2025

@omeraplak can u rereview the PR . Thank you

@ekas-7 ekas-7 requested review from omeraplak October 22, 2025 15:29
Copy link
Member

@omeraplak omeraplak left a comment

Choose a reason for hiding this comment

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

🔥 Thank you

@omeraplak omeraplak merged commit 683318f into VoltAgent:main Oct 22, 2025
20 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.

[FEAT] Swagger documentation should include custom endpoints

2 participants