some improvements

This commit is contained in:
ston1th 2019-08-26 19:58:31 +02:00
commit 58a0dc36d5
25 changed files with 233 additions and 105 deletions

View file

@ -35,6 +35,7 @@ type HTTPServer struct {
JWT *jwt.JWT
Scanner *scan.Scanner
FS *fs.Filesystem
Log *log.ScanLog
templ map[string]*template.Template
res map[string][]byte
@ -45,6 +46,7 @@ func NewHTTPServer(cfg core.Config, l net.Listener, s *scan.Scanner) (srv *HTTPS
Config: cfg,
listener: l,
Scanner: s,
Log: log.NewScanLog(0),
}
srv.handler = srv.buildRoutes()
srv.loadTemplates()