Skip to content

Commit

Permalink
cmd/greenapid: add api daemon entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jbowens committed Aug 12, 2019
1 parent e065583 commit f9a16c0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cmd/greenapid/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package main

import (
"net/http"

"github.com/jbowens/codenamesgreen/gameapi"
)

func main() {
wordLists, err := gameapi.DefaultWordlists()
if err != nil {
panic(err)
}

h := gameapi.Handler(wordLists)
err = http.ListenAndServe(":8080", h)
panic(err)
}

0 comments on commit f9a16c0

Please sign in to comment.