diff --git a/src/main/java/org/ntlab/nemophila/resources/accounts/AccountsRest.java b/src/main/java/org/ntlab/nemophila/resources/accounts/AccountsRest.java index da82f8b..212a7c4 100644 --- a/src/main/java/org/ntlab/nemophila/resources/accounts/AccountsRest.java +++ b/src/main/java/org/ntlab/nemophila/resources/accounts/AccountsRest.java @@ -11,9 +11,10 @@ @Path("/accounts") public class AccountsRest { @POST + @Produces(MediaType.APPLICATION_JSON) public Account createAccount(@FormParam("name") String name, @FormParam("pw") String pw) { AccountManager am = AccountManager.getInstance(); - Account newAccount = createAccount(name,pw); + Account newAccount = am.createAccount(name,pw); return newAccount; }