Add Update Button

This commit is contained in:
Pablu23
2024-05-30 20:36:03 +02:00
parent 8de5bb0fdc
commit 16be88a849
3 changed files with 189 additions and 167 deletions

View File

@@ -18,8 +18,12 @@ import (
"time"
)
func (s *Server) HandleUpdate(w http.ResponseWriter, r *http.Request){
s.UpdateMangaList()
http.Redirect(w, r, "/", http.StatusFound)
}
func (s *Server) HandleLoginPost(w http.ResponseWriter, r *http.Request) {
fmt.Println("Setting auth")
secret := r.PostFormValue("secret")
http.SetCookie(w, &http.Cookie{
Name: "auth",