package http import ( "io" "net/http" "github.com/gin-gonic/gin" ) type Server struct{} func NewServer() *Server { return &Server{} } func (s *Server) Start(zapWriter io.Writer) { router := gin.Default() router.SetTrustedProxies(nil) gin.DisableConsoleColor() gin.DefaultWriter = zapWriter // send gin logs to zap router.GET("/.well-known/webfinger", func(c *gin.Context) { // resource := c.Query("resource") c.JSON(http.StatusOK, nil) }) router.Run() }