must start server with api-key (#396)

log if no api key is specified
This commit is contained in:
Brett Demetris
2018-04-19 18:14:50 -07:00
committed by Victor Vrantchan
parent f843041cbc
commit 27786e12a1

View File

@@ -339,6 +339,8 @@ func serve(args []string) error {
r.Handle("/v1/dep/profiles", apiAuthMiddleware(*flAPIKey, depHandlers))
r.Handle("/v1/commands", apiAuthMiddleware(*flAPIKey, commandHandlers.NewCommandHandler)).Methods("POST")
r.Handle("/push/{udid}", apiAuthMiddleware(*flAPIKey, apnsHandlers))
} else {
mainLogger.Log("msg", "no api key specified")
}
if *flRepoPath != "" {