initial commit
This commit is contained in:
18
main.go
Normal file
18
main.go
Normal 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))
|
||||
}
|
Reference in New Issue
Block a user