You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 line
349B

  1. package main
  2. import (
  3. "log"
  4. "net/http"
  5. )
  6. func main() {
  7. if readConfig() != nil {
  8. log.Fatal("unable to read config, program quit")
  9. return
  10. }
  11. //setup handler
  12. http.HandleFunc("/", webrootHandler)
  13. http.HandleFunc("/api", apiV1Main)
  14. //http.ListenAndServe("127.0.0.1:65500", nil)
  15. //CreateDefaultMenu()
  16. http.ListenAndServe(":65500", nil)
  17. }