2023-11-13 11:44:14 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
|
2024-01-02 00:55:50 +01:00
|
|
|
"github.com/tim-beatham/smegmesh/pkg/api"
|
2023-11-13 11:44:14 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2023-11-20 19:07:52 +01:00
|
|
|
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())
|
|
|
|
}
|
|
|
|
|
2023-11-20 16:22:32 +01:00
|
|
|
apiServer.Run(":8080")
|
2023-11-13 11:44:14 +01:00
|
|
|
}
|