chore: Refactor storia.go into its own module.

This commit is contained in:
2022-08-28 11:16:07 +02:00
parent 3d0bd18aef
commit 5decb85552
4 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import (
"git.phc.dm.unipi.it/phc/website/auth"
"git.phc.dm.unipi.it/phc/website/model"
"git.phc.dm.unipi.it/phc/website/rss"
"git.phc.dm.unipi.it/phc/website/storia"
"git.phc.dm.unipi.it/phc/website/templates"
"git.phc.dm.unipi.it/phc/website/util"
)
@@ -51,7 +52,7 @@ type DefaultHandler struct {
NewsArticlesRegistry *articles.Registry
GuideArticlesRegistry *articles.Registry
ListaUtenti website.ListaUtentiService
Storia website.StoriaService
Storia storia.StoriaService
}
func (h *DefaultHandler) HandleStaticPage(w io.Writer, view string, ctx Context) error {