From 0e95384973293e92df6074c642135fbbb7a7495b Mon Sep 17 00:00:00 2001 From: YinjianChen Date: Fri, 6 Jan 2023 22:53:14 -0300 Subject: [PATCH] fix: spelling errors --- handler/route.go | 2 +- handler/server.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/handler/route.go b/handler/route.go index 601a533..512bb36 100644 --- a/handler/route.go +++ b/handler/route.go @@ -342,7 +342,7 @@ func (s *Server) RegisterRouters() { contentAPIRouter.GET("/links", s.wrapHandler(s.ContentAPILinkHandler.ListLinks)) contentAPIRouter.GET("/links/team_view", s.wrapHandler(s.ContentAPILinkHandler.LinkTeamVO)) - contentAPIRouter.GET("/options/comment", s.wrapHandler(s.ContentAPIOptionHander.Comment)) + contentAPIRouter.GET("/options/comment", s.wrapHandler(s.ContentAPIOptionHandler.Comment)) } } } diff --git a/handler/server.go b/handler/server.go index 6f02706..0e12696 100644 --- a/handler/server.go +++ b/handler/server.go @@ -75,7 +75,7 @@ type Server struct { ContentAPILinkHandler *api.LinkHandler ContentAPIPostHandler *api.PostHandler ContentAPISheetHandler *api.SheetHandler - ContentAPIOptionHander *api.OptionHandler + ContentAPIOptionHandler *api.OptionHandler } type ServerParams struct { @@ -129,7 +129,7 @@ type ServerParams struct { ContentAPILinkHandler *api.LinkHandler ContentAPIPostHandler *api.PostHandler ContentAPISheetHandler *api.SheetHandler - ContentAPIOptionHander *api.OptionHandler + ContentAPIOptionHandler *api.OptionHandler } func NewServer(param ServerParams, lifecycle fx.Lifecycle) *Server { @@ -192,7 +192,7 @@ func NewServer(param ServerParams, lifecycle fx.Lifecycle) *Server { ContentAPILinkHandler: param.ContentAPILinkHandler, ContentAPIPostHandler: param.ContentAPIPostHandler, ContentAPISheetHandler: param.ContentAPISheetHandler, - ContentAPIOptionHander: param.ContentAPIOptionHander, + ContentAPIOptionHandler: param.ContentAPIOptionHandler, ContentSearchHandler: param.ContentSearchHandler, } lifecycle.Append(fx.Hook{