return empty object on all handlers instead of empty string

This commit is contained in:
Pascal Fischer
2023-03-29 18:46:40 +02:00
parent 9746a7f61a
commit 03abdfa112
8 changed files with 10 additions and 7 deletions

View File

@@ -25,6 +25,9 @@ type apiHandler struct {
AuthCfg AuthCfg
}
type emptyObject struct {
}
// APIHandler creates the Management service HTTP API handler registering all the available endpoints.
func APIHandler(accountManager s.AccountManager, appMetrics telemetry.AppMetrics, authCfg AuthCfg) (http.Handler, error) {
jwtMiddleware, err := middleware.NewJwtMiddleware(