mirror of
https://github.com/ghostersk/gowebmail.git
synced 2026-04-17 16:46:01 +01:00
20 lines
392 B
Go
20 lines
392 B
Go
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/ghostersk/gowebmail/config"
|
|
"github.com/ghostersk/gowebmail/internal/db"
|
|
)
|
|
|
|
// 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)
|
|
}
|