wip on issue #22

This commit is contained in:
dartpopikyardo
2016-09-02 01:45:30 +03:00
parent f76912a6cf
commit 47e9053285
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ public class AccountQueryController {
return ResponseEntity.ok().body(new GetAccountResponse(accountInfo.getId(), new BigDecimal(accountInfo.getBalance()), accountInfo.getTitle(), accountInfo.getDescription()));
}
@RequestMapping(value = "/customer/{customerId}/accounts", method = RequestMethod.GET)
@RequestMapping(value = "/customers/{customerId}/accounts", method = RequestMethod.GET)
public ResponseEntity<GetAccountsResponse> getAccountsForCustomer(@PathVariable("customerId") String customerId) {
return ResponseEntity.ok().body(
new GetAccountsResponse(

View File

@@ -56,7 +56,7 @@ public class GatewayController {
.build();
}
@RequestMapping(value = "/**", method = {GET, POST})
@RequestMapping(value = {"/accounts**","/customers**","/transfers**","/login","/user"}, method = {GET, POST})
public ResponseEntity<String> proxyRequest(HttpServletRequest request) throws NoSuchRequestHandlingMethodException, IOException, URISyntaxException {
HttpUriRequest proxiedRequest = createHttpUriRequest(request);
logger.info("request: {}", proxiedRequest);