Browse Source

refactor: debugging key

Yeuoly 10 months ago
parent
commit
89c1f325bb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      internal/server/http_server.go
  2. 1 1
      internal/types/entities/requests/debugging.go

+ 1 - 1
internal/server/http_server.go

@@ -19,7 +19,7 @@ func (app *App) server(config *app.Config) func() {
 	engine.GET("/health/check", controllers.HealthCheck)
 
 	app.pluginInvokeGroup(engine.Group("/plugin"), config)
-	app.remoteDebuggingGroup(engine.Group("/plugin/debugging"), config)
+	app.remoteDebuggingGroup(engine.Group("/plugin/:tenant_id/debugging"), config)
 	app.endpointGroup(engine.Group("/e"), config)
 	app.awsLambdaTransactionGroup(engine.Group("/backwards-invocation"), config)
 	app.endpointManagementGroup(engine.Group("/endpoint"))

+ 1 - 1
internal/types/entities/requests/debugging.go

@@ -1,5 +1,5 @@
 package requests
 
 type RequestGetRemoteDebuggingKey struct {
-	TenantID string `json:"tenant_id" validate:"required"`
+	TenantID string `uri:"tenant_id" validate:"required"`
 }