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