diff --git a/src/controllers/agent/AgentController.ts b/src/controllers/agent/AgentController.ts index 79f42b26..a7ec6fc6 100644 --- a/src/controllers/agent/AgentController.ts +++ b/src/controllers/agent/AgentController.ts @@ -19,7 +19,7 @@ export class AgentController extends Controller { /** * Retrieve basic agent information */ - @Get('/info') + @Get('/') public async getAgentInfo(): Promise { return { label: this.agent.config.label, diff --git a/src/routes/routes.ts b/src/routes/routes.ts index ee99d42c..98a5f1db 100644 --- a/src/routes/routes.ts +++ b/src/routes/routes.ts @@ -3748,7 +3748,7 @@ export function RegisterRoutes(app: Router) { } }); // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa - app.get('/agent/info', + app.get('/agent', ...(fetchMiddlewares(AgentController)), ...(fetchMiddlewares(AgentController.prototype.getAgentInfo)), diff --git a/src/routes/swagger.json b/src/routes/swagger.json index 0de2b917..2eb97060 100644 --- a/src/routes/swagger.json +++ b/src/routes/swagger.json @@ -9089,7 +9089,7 @@ } } }, - "/agent/info": { + "/agent": { "get": { "operationId": "GetAgentInfo", "responses": {