Last active
March 18, 2020 20:37
-
-
Save steinarb/0be53920c83b1ae20a4c58c361da512c to your computer and use it in GitHub Desktop.
Frontend servlet with routing
This file contains 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
@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