Fix routes not being registered
This commit is contained in:
@@ -85,6 +85,8 @@ func (s *Server) Start() error {
|
||||
Addr: fmt.Sprintf(":%d", s.options.Port),
|
||||
Handler: s.mux,
|
||||
}
|
||||
s.RegisterRoutes()
|
||||
s.registerUpdater()
|
||||
|
||||
if s.options.Auth.Enabled {
|
||||
auth := s.options.Auth.Get()
|
||||
@@ -102,8 +104,6 @@ func (s *Server) Start() error {
|
||||
server.Handler = s.Auth(s.mux)
|
||||
}
|
||||
|
||||
s.registerUpdater()
|
||||
|
||||
if s.options.Tls.Enabled {
|
||||
tls := s.options.Tls.Get()
|
||||
log.Info().Int("Port", s.options.Port).Str("Cert", tls.CertPath).Str("Key", tls.KeyPath).Msg("Starting server")
|
||||
|
||||
Reference in New Issue
Block a user