http: add GET route for clients

This commit is contained in:
Jimmy Zelinskie
2015-02-08 02:20:48 -05:00
parent f98e166744
commit 443fb4b70d
2 changed files with 8 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ func newRouter(s *Server) *httprouter.Router {
}
if s.config.ClientWhitelistEnabled {
r.GET("/clients/:clientID", makeHandler(s.getClient))
r.PUT("/clients/:clientID", makeHandler(s.putClient))
r.DELETE("/clients/:clientID", makeHandler(s.delClient))
}