Files
Adrian Zürcher 21b41de886 initial commit
2025-08-04 16:59:29 +02:00

19 lines
447 B
Go

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))
}