Flash poruke: toast notifikacije umesto ?greska= i ?sacuvano= u URL-u

This commit is contained in:
2026-06-05 23:15:49 +02:00
parent 2b3636528f
commit 9af712edd3
10 changed files with 267 additions and 116 deletions
+1
View File
@@ -89,5 +89,6 @@ func (h *Handler) popuniPodaciStranice(r *http.Request, podesavanja map[string]s
ps.Dozvole = h.DozvoleRepo.SveDozvole(r.Context(), k.Uloga)
}
ps.CsrfToken = middleware.CsrfToken(r.Context())
ps.Flash = middleware.GetFlash(r, h.DB)
return ps
}