Skip to content

Commit 3279c7b

Browse files
authored
fix: correct the default value in the agentCardPath comment (#130)
# Description The default value of `agentCardPath` does not have a preceding slash. https://github.com/a2aproject/a2a-js/blob/c055b769d96cd197dfb89748c4708277de66684c/src/constants.ts#L8
1 parent c055b76 commit 3279c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/express/a2a_express_app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class A2AExpressApp {
2020
* @param app Optional existing Express app.
2121
* @param baseUrl The base URL for A2A endpoints (e.g., "/a2a/api").
2222
* @param middlewares Optional array of Express middlewares to apply to the A2A routes.
23-
* @param agentCardPath Optional custom path for the agent card endpoint (defaults to /.well-known/agent-card.json).
23+
* @param agentCardPath Optional custom path for the agent card endpoint (defaults to .well-known/agent-card.json).
2424
* @returns The Express app with A2A routes.
2525
*/
2626
public setupRoutes(

0 commit comments

Comments
 (0)