Added json response to license.

This commit is contained in:
harshanL 2014-12-15 09:17:20 +05:30
parent aa2448dd0a
commit 6489ea1168

View File

@ -39,7 +39,10 @@ public class Authentication {
@POST
@Path("/device/license")
@Produces("application/json")
public String getLicense() {
return "License Agreement";
JsonObject result = new JsonObject();
result.addProperty("licenseText", "License Agreement");
return result.toString();
}
}