diff --git a/main.go b/main.go index 0134ec3..d020ded 100644 --- a/main.go +++ b/main.go @@ -35,6 +35,7 @@ func main() { router.HandleFunc("/api/get/settings", controllers.SettingsGet).Methods("GET") router.HandleFunc("/api/get/version", controllers.Version).Methods("GET") router.HandleFunc("/api/update/settings", controllers.SettingsUpdate).Methods("POST") + router.HandleFunc("/api/update/wallpaper", controllers.WallpaperUpdate).Methods("POST") go func() { err := http.ListenAndServe(":8080", router) diff --git a/web/src/gallery.html b/web/src/gallery.html index 4756e59..9652cb0 100644 --- a/web/src/gallery.html +++ b/web/src/gallery.html @@ -4,8 +4,7 @@