frontend: able to receive opening hint

This commit is contained in:
nemunaire 2016-12-09 11:55:44 +01:00 committed by Pierre-Olivier Mercier
parent c669319e56
commit 3d60896bdf
2 changed files with 40 additions and 0 deletions

View file

@ -79,6 +79,7 @@ func main() {
if !*denyChName {
http.Handle(fmt.Sprintf("%s/chname/", *prefix), http.StripPrefix(fmt.Sprintf("%s/chname/", *prefix), ChNameHandler{}))
}
http.Handle(fmt.Sprintf("%s/openhint/", *prefix), http.StripPrefix(fmt.Sprintf("%s/openhint/", *prefix), HintHandler{}))
http.Handle(fmt.Sprintf("%s/submission/", *prefix), http.StripPrefix(fmt.Sprintf("%s/submission/", *prefix), SubmissionHandler{end}))
log.Println(fmt.Sprintf("Ready, listening on %s", *bind))