diff --git a/main.go b/main.go index 6b2396b..014c25e 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,6 @@ import ( "github.com/Redume/EveryNasa/api/controllers" "github.com/Redume/EveryNasa/functions" "github.com/Redume/EveryNasa/web/pages" - "github.com/getlantern/systray" "github.com/gorilla/mux" ) @@ -36,19 +35,18 @@ func main() { 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") - router.HandleFunc("/api/update/add/startapp", controllers.AddStartApp).Methods("POST") - router.HandleFunc("/api/update/del/startapp", controllers.RemoveStartApp).Methods("POST") + router.HandleFunc("/api/update/set/startup", controllers.SetStartup).Methods("POST") + router.HandleFunc("/api/update/del/startup", controllers.RemoveStartup).Methods("POST") go func() { err := http.ListenAndServe(":4662", nil) if err != nil { - panic(err) + functions.Logger(err.Error()) } }() err := http.ListenAndServe(":8080", router) if err != nil { - panic(err) + functions.Logger(err.Error()) } - } diff --git a/web/src/settings.html b/web/src/settings.html index 3837b69..27ad63c 100644 --- a/web/src/settings.html +++ b/web/src/settings.html @@ -34,20 +34,20 @@

Application Settings

+
+

Add a program to the startup

+

EverNasa will automatically start when you log in.

+
+ + +
+

Auto-change of desktop wallpaper

EveryNasa will automatically change the desktop wallpaper at startup as well as every day

- -
-
-
-

Add a program to the startup

-

EverNasa will automatically start when you log in.

-
- - +
@@ -64,6 +64,7 @@
- + + \ No newline at end of file