Private
Public Access
1
0
Files
Kordophone/main.go

28 lines
402 B
Go
Raw Normal View History

package main
import (
"log"
"net/http"
"code.severnaya.net/kordophone-mock/v2/web"
)
func main() {
log.Println("Initializing")
c := web.MockHTTPServerConfiguration{
AuthEnabled: false,
}
s := web.NewMockHTTPServer(c)
httpServer := &http.Server{
Addr: ":5738",
Handler: s,
}
// Populate with test data
s.Server.PopulateWithTestData()
log.Fatal(httpServer.ListenAndServe())
}