diff --git a/src/main/java/cactusServer/resources/AccountsRest.java b/src/main/java/cactusServer/resources/AccountsRest.java index d342937..938b696 100644 --- a/src/main/java/cactusServer/resources/AccountsRest.java +++ b/src/main/java/cactusServer/resources/AccountsRest.java @@ -29,11 +29,10 @@ @FormParam("userPass") String userPass) { return Accounts.getInstance().createAcount(userID, userName, userPass); } -/* @GET - @Path("/getAccount") + @Path("/{userID}") @Produces(MediaType.APPLICATION_JSON) - public Account getAccount(@FormParam("userID") String userID) { + public Account getAccount(@PathParam("userID") String userID) { return Accounts.getInstance().getAccount(userID); - }*/ + } }