Basic Routing
GreenLightning allows for easy-to-use routing. Routes define how your content is accessed through HTTP.
See the Simple REST Server tutorial for a detailed example on how to create routes.
Creating Routes
Routes need to be defined inside the declareConfiguration method of your GreenApp:
builder.defineRoute()
.path("/api/hello/${NAME}")
//.associatedObject("NAME", HelloField.NAME)
.refineString("NAME", HelloField.NAME, "DefaultName")
.routeId(HelloStruct.HELLO_WORLD);