@@ -176,26 +176,26 @@ private Router createRoutesSetup() {
176176 .allowedHeader ("Content-Type" ));
177177 router .route ().failureHandler (new GenericFailureHandler ());
178178
179- router .post ("/attest" )
179+ router .post (Endpoints . ATTEST . toString () )
180180 .handler (new AttestationFailureHandler ())
181181 .handler (auth .handle (this ::handleAttestAsync , Role .OPERATOR , Role .OPTOUT_SERVICE ));
182- router .get ("/cloud_encryption_keys/retrieve" ).handler (auth .handle (attestationMiddleware .handle (this ::handleCloudEncryptionKeysRetrieval ), Role .OPERATOR ));
183- router .get ("/sites/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleSiteRefresh ), Role .OPERATOR ));
184- router .get ("/key/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleKeyRefresh ), Role .OPERATOR ));
185- router .get ("/key/acl/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleKeyAclRefresh ), Role .OPERATOR ));
186- router .get ("/key/keyset/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleKeysetRefresh ), Role .OPERATOR ));
187- router .get ("/key/keyset-keys/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleKeysetKeyRefresh ), Role .OPERATOR ));
188- router .get ("/salt/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleSaltRefresh ), Role .OPERATOR ));
189- router .get ("/clients/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleClientRefresh ), Role .OPERATOR ));
190- router .get ("/client_side_keypairs/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleClientSideKeypairRefresh ), Role .OPERATOR ));
191- router .get ("/services/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleServiceRefresh ), Role .OPERATOR ));
192- router .get ("/service_links/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleServiceLinkRefresh ), Role .OPERATOR ));
193- router .get ("/operators/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handleOperatorRefresh ), Role .OPTOUT_SERVICE ));
194- router .get ("/partners/refresh" ).handler (auth .handle (attestationMiddleware .handle (this ::handlePartnerRefresh ), Role .OPTOUT_SERVICE ));
195- router .get ("/ops/healthcheck" ).handler (this ::handleHealthCheck );
182+ router .get (Endpoints . CLOUD_ENCRYPTION_KEYS_RETRIEVE . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleCloudEncryptionKeysRetrieval ), Role .OPERATOR ));
183+ router .get (Endpoints . SITES_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleSiteRefresh ), Role .OPERATOR ));
184+ router .get (Endpoints . KEY_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleKeyRefresh ), Role .OPERATOR ));
185+ router .get (Endpoints . KEY_ACL_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleKeyAclRefresh ), Role .OPERATOR ));
186+ router .get (Endpoints . KEY_KEYSET_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleKeysetRefresh ), Role .OPERATOR ));
187+ router .get (Endpoints . KEY_KEYSET_KEYS_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleKeysetKeyRefresh ), Role .OPERATOR ));
188+ router .get (Endpoints . SALT_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleSaltRefresh ), Role .OPERATOR ));
189+ router .get (Endpoints . CLIENTS_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleClientRefresh ), Role .OPERATOR ));
190+ router .get (Endpoints . CLIENT_SIDE_KEYPAIRS_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleClientSideKeypairRefresh ), Role .OPERATOR ));
191+ router .get (Endpoints . SERVICES_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleServiceRefresh ), Role .OPERATOR ));
192+ router .get (Endpoints . SERVICE_LINKS_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleServiceLinkRefresh ), Role .OPERATOR ));
193+ router .get (Endpoints . OPERATORS_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handleOperatorRefresh ), Role .OPTOUT_SERVICE ));
194+ router .get (Endpoints . PARTNERS_REFRESH . toString () ).handler (auth .handle (attestationMiddleware .handle (this ::handlePartnerRefresh ), Role .OPTOUT_SERVICE ));
195+ router .get (Endpoints . OPS_HEALTHCHECK . toString () ).handler (this ::handleHealthCheck );
196196
197197 if (Optional .ofNullable (ConfigStore .Global .getBoolean ("enable_test_endpoints" )).orElse (false )) {
198- router .route ("/attest/get_token" ).handler (auth .handle (this ::handleTestGetAttestationToken , Role .OPERATOR ));
198+ router .route (Endpoints . ATTEST_GET_TOKEN . toString () ).handler (auth .handle (this ::handleTestGetAttestationToken , Role .OPERATOR ));
199199 }
200200
201201 return router ;
0 commit comments