Skip to content

Commit aff307e

Browse files
authored
Check client version before auth (#2060)
1 parent f92535b commit aff307e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/operator/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ func main() {
112112
routerWithAuth := router.NewRoute().Subrouter()
113113

114114
routerWithAuth.Use(endpoints.PanicMiddleware)
115+
routerWithAuth.Use(endpoints.APIVersionCheckMiddleware)
115116
routerWithAuth.Use(endpoints.AWSAuthMiddleware)
116117
routerWithAuth.Use(endpoints.ClientIDMiddleware)
117-
routerWithAuth.Use(endpoints.APIVersionCheckMiddleware)
118118

119119
routerWithAuth.HandleFunc("/info", endpoints.Info).Methods("GET")
120120
routerWithAuth.HandleFunc("/deploy", endpoints.Deploy).Methods("POST")

0 commit comments

Comments
 (0)