go: rm deadcode from app/routes.go
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-04-26 23:05:48 +02:00
parent fe9fd0fa5a
commit 8c7c84f6f9
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -12,18 +12,12 @@ func (a *App) SetupRoutes() {
e := a.E()
conf := a.Config()
liveMode := conf.LiveMode
// liveMode := a.Config().LiveMode
assets := http.FileServer(a.getAssets(liveMode))
tmpls := a.getTemplates(liveMode)
// tmplHandler := http.FileServer(a.getTemplates(live))
// run this before declaring any handler funcs.
// handlers.SetConfig(conf)
// handlers.SetAppVer(a.version)
// handlers.InitTemplates(tmpls)
handlers.InitHandlers(a.version, conf, tmpls)
// e.GET("/", echo.WrapHandler(assetHandler))
// keep /static/* as a compatibility fallback for /assets.
e.GET(
"/static/*",
@ -33,9 +27,6 @@ func (a *App) SetupRoutes() {
),
)
e.GET("/assets/*", echo.WrapHandler(http.StripPrefix("/assets/", assets)))
// e.GET("/", handlers.Index(indexTmpl))
// e.GET("/", handlers.Index(conf, tmpls))
// e.GET("/", handlers.Index(conf))
e.GET("/", handlers.Index())
e.GET("/signin", handlers.Signin())
e.POST("/signin", handlers.SigninPost(a.db))