refact round 3
This commit is contained in:
16
content/handler.howtos.go
Normal file
16
content/handler.howtos.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package content
|
||||
|
||||
import "bbs-server/engine"
|
||||
|
||||
// HowToHandler handles the HowTo Guides menu item
|
||||
type HowToHandler struct {
|
||||
repo *wikiRepository
|
||||
}
|
||||
|
||||
func NewHowToHandler(token string) *HowToHandler {
|
||||
return &HowToHandler{repo: &wikiRepository{token: token}}
|
||||
}
|
||||
|
||||
func (h *HowToHandler) Handle(s *engine.Session) {
|
||||
renderWikiList(s, h.repo, "howto", "HowTo Guides", engine.MG)
|
||||
}
|
||||
Reference in New Issue
Block a user