Created
July 23, 2019 09:39
-
-
Save aaukhatov/0044469d52f0f100152146147df3431a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @GET | |
| @Produces(MediaType.APPLICATION_JSON) | |
| public Response getState(@Context ServletContext context) { | |
| log.info("IoT page"); | |
| URI uri = UriBuilder.fromUri(URI.create(context.getContextPath())) | |
| .path("/iot.html").build(); | |
| return Response.seeOther(uri).build(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment