Files
gowebmail/internal/handlers/app.go

20 lines
392 B
Go
Raw Normal View History

2026-03-07 06:20:39 +00:00
package handlers
import (
"net/http"
"github.com/ghostersk/gowebmail/config"
"github.com/ghostersk/gowebmail/internal/db"
2026-03-07 06:20:39 +00:00
)
// AppHandler serves the main app pages using the shared Renderer.
type AppHandler struct {
db *db.DB
cfg *config.Config
renderer *Renderer
}
func (h *AppHandler) Index(w http.ResponseWriter, r *http.Request) {
h.renderer.Render(w, "app", nil)
}