Skip to content

Commit

Permalink
fix(server): api wasn't initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-pad committed Oct 23, 2023
1 parent 5c1e906 commit 5f0eb8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion internal/server/api/api.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
package api

import (
"github.com/padok-team/burrito/internal/burrito/config"
"sigs.k8s.io/controller-runtime/pkg/client"
)

type API struct {
client.Client
config *config.Config
Client client.Client
}

func New(c *config.Config) *API {
return &API{
config: c,
}
}
4 changes: 2 additions & 2 deletions internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ type Server struct {
}

func New(c *config.Config) *Server {
webhook := webhook.New(c)
return &Server{
config: c,
Webhook: webhook,
Webhook: webhook.New(c),
API: api.New(c),
}
}

Expand Down

0 comments on commit 5f0eb8d

Please sign in to comment.