()
| 18 | } |
| 19 | |
| 20 | func (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 | |
| 30 | func (s *ServerConfig) Serve() { |
| 31 | err := s.Listen(fmt.Sprintf("%s:%s", s.Host, s.Port)) |
nothing calls this directly
no outgoing calls
no test coverage detected