mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
agent: ensure all HTTP Server methods are pointer receivers. (#15250)
This commit is contained in:
@@ -347,7 +347,7 @@ func (s *HTTPServer) ResolveToken(req *http.Request) (*acl.ACL, error) {
|
||||
}
|
||||
|
||||
// registerHandlers is used to attach our handlers to the mux
|
||||
func (s HTTPServer) registerHandlers(enableDebug bool) {
|
||||
func (s *HTTPServer) registerHandlers(enableDebug bool) {
|
||||
s.mux.HandleFunc("/v1/jobs", s.wrap(s.JobsRequest))
|
||||
s.mux.HandleFunc("/v1/jobs/parse", s.wrap(s.JobsParseRequest))
|
||||
s.mux.HandleFunc("/v1/job/", s.wrap(s.JobSpecificRequest))
|
||||
|
||||
Reference in New Issue
Block a user