1
0
forked from extern/smegmesh
smegmesh/cmd/api/main.go

20 lines
258 B
Go
Raw Normal View History

2023-11-13 11:44:14 +01:00
package main
import (
"log"
"github.com/tim-beatham/wgmesh/pkg/api"
)
func main() {
apiServer, err := api.NewSmegServer(api.ApiServerConf{
WordsFile: "./cmd/api/words.txt",
})
2023-11-13 11:44:14 +01:00
if err != nil {
log.Fatal(err.Error())
}
apiServer.Run(":8080")
2023-11-13 11:44:14 +01:00
}