Skip to content

Commit

Permalink
fix: agent auth
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna <[email protected]>
Signed-off-by: tipusinghaw <[email protected]>
  • Loading branch information
GHkrishna authored and tipusinghaw committed Apr 30, 2024
1 parent e250070 commit bbc3564
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controllers/agent/AgentController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class AgentController extends Controller {
/**
* Retrieve basic agent information
*/
@Get('/info')
@Get('/')
public async getAgentInfo(): Promise<AgentInfo> {
return {
label: this.agent.config.label,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<RequestHandler>(AgentController)),
...(fetchMiddlewares<RequestHandler>(AgentController.prototype.getAgentInfo)),

Expand Down
2 changes: 1 addition & 1 deletion src/routes/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -9089,7 +9089,7 @@
}
}
},
"/agent/info": {
"/agent": {
"get": {
"operationId": "GetAgentInfo",
"responses": {
Expand Down

0 comments on commit bbc3564

Please sign in to comment.