19 lines
318 B
Go
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))
|
|
}
|