Files
fes/modules/server/server.go
2026-01-15 12:23:13 -05:00

19 lines
318 B
Go

package server
import (
"fes/modules/config"
"fmt"
"log"
"net/http"
)
var routes map[string]string
func Start(dir string) {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("<h1>Sup bitch</h1>"))
})
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", *config.Port), nil))
}