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

20 lines
260 B
Go
Raw Permalink Normal View History

2023-11-13 11:44:14 +01:00
package main
import (
"log"
"github.com/tim-beatham/smegmesh/pkg/api"
2023-11-13 11:44:14 +01:00
)
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
}