initial commit

This commit is contained in:
Adrian Zürcher
2025-08-04 16:59:29 +02:00
commit 21b41de886
10 changed files with 470 additions and 0 deletions

18
main.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"log"
"net/http"
"processSupervisor/handlers"
)
func main() {
fs := http.FileServer(http.Dir("static"))
http.Handle("/static/", http.StripPrefix("/static/", fs))
http.HandleFunc("/taskmanager/htop", handlers.HtopHandler)
http.HandleFunc("/taskmanager/kill", handlers.KillHandler)
log.Println("Listening on http://localhost:8080/taskmanager/htop")
log.Fatal(http.ListenAndServe(":8080", nil))
}