Skip to content

Instantly share code, notes, and snippets.

@steinarb
Last active March 18, 2020 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinarb/0be53920c83b1ae20a4c58c361da512c to your computer and use it in GitHub Desktop.
Save steinarb/0be53920c83b1ae20a4c58c361da512c to your computer and use it in GitHub Desktop.
Frontend servlet with routing
@Component(service={Servlet.class}, property={"alias=/frontend-karaf-demo"})
public class ReactServlet extends FrontendServlet {
public ReactServlet() {
super();
setRoutes("/", "/counter", "/about");
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment