MCPcopy Create free account
hub / github.com/Trendyol/wolfichef / Setup

Method Setup

api/config/server.go:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func (s *ServerConfig) Setup() {
21 s.App = fiber.New(fiber.Config{
22 JSONEncoder: json.Marshal,
23 JSONDecoder: json.Unmarshal,
24 })
25
26 s.App.Use(cors.New())
27 s.App.Use(identifier.New())
28}
29
30func (s *ServerConfig) Serve() {
31 err := s.Listen(fmt.Sprintf("%s:%s", s.Host, s.Port))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected