Change: make ping under authentication

This commit is contained in:
Dreamacro 2020-02-21 18:00:19 +08:00
parent d68339cea7
commit 609869bf5a

View file

@ -57,10 +57,10 @@ func Start(addr string, secret string) {
})
r.Use(cors.Handler)
r.Get("/", hello)
r.Group(func(r chi.Router) {
r.Use(authentication)
r.Get("/", hello)
r.Get("/logs", getLogs)
r.Get("/traffic", traffic)
r.Get("/version", version)