Display avatars according to the server config

This uses a similar pattern to
https://gerrit-review.googlesource.com/72659/ where a promise is
used for a global var that is retrieved asynchronously.

Change-Id: I99a4b589d368876becf4dd000a2ffde39b34eaa4
This commit is contained in:
Andrew Bonventre
2015-11-30 18:44:48 -05:00
parent 8bcaba7609
commit 8d1cde2a5d
5 changed files with 81 additions and 29 deletions

View File

@@ -47,6 +47,7 @@ func main() {
http.HandleFunc("/changes/", handleRESTProxy)
http.HandleFunc("/accounts/", handleRESTProxy)
http.HandleFunc("/config/", handleRESTProxy)
log.Println("Serving on port", *port)
log.Fatal(http.ListenAndServe(*port, &server{}))
}