Skip to content
Snippets Groups Projects
Commit b6a91448 authored by GAYDAMAKHA MIKHAIL's avatar GAYDAMAKHA MIKHAIL
Browse files

:bug: fix web registry redirection

parent 234f3c7b
Branches
2 merge requests!41Develop,!40Feature/post registry
......@@ -65,7 +65,7 @@ public class WebRegistryController {
}
@PostMapping(WEB_MAPPING_REGISTRY)
public ResponseEntity<Object> createUser(@ModelAttribute RegistryInfo registryInfo) throws ParseException {
public String createUser(@ModelAttribute RegistryInfo registryInfo) throws ParseException {
RegistryEntry entry = new RegistryEntry(
0,
registryInfo.getTransactionType(),
......@@ -75,7 +75,7 @@ public class WebRegistryController {
registryInfo.getCredit(),
registryInfo.getRemarks()
);
entry = repository.store(entry);
return new ResponseEntity<>(entry, HttpStatus.CREATED);
repository.store(entry);
return "registry";
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment