diff --git a/src/main/java/cactusServer/resources/InstancesRest.java b/src/main/java/cactusServer/resources/InstancesRest.java index b2d2445..41dd78b 100644 --- a/src/main/java/cactusServer/resources/InstancesRest.java +++ b/src/main/java/cactusServer/resources/InstancesRest.java @@ -23,6 +23,7 @@ import cactusServer.entities.EmoteState; import cactusServer.entities.IDAddressedEntity; import cactusServer.entities.Instance; +import cactusServer.entities.Instance.State; import cactusServer.entities.Plain; import cactusServer.entities.Player; import cactusServer.entities.URIAddressedEntity; @@ -36,6 +37,9 @@ public InstancesRest() { } + + + // @Path("/test") // @GET @@ -132,7 +136,15 @@ // public Instance updateInstance(@FormParam("state") Instance.State state) { // return Instances.getInstance().updateInstance(name, state, stageID); // } - + +// @Path("/{instanceId}") +// @PUT +// @Produces(MediaType.APPLICATION_JSON) +// public Instance updateInstance(@FormParam("state") State state) { +// return Instances.getInstance(name, state, stageID) +// } + + @Path("/players/{playerId}") @PUT @Produces(MediaType.APPLICATION_JSON)