... | @@ -36,7 +36,7 @@ The implementation is called a handler. |
... | @@ -36,7 +36,7 @@ The implementation is called a handler. |
|
DelightConfig cfg = DelightConfigFinder.getDefaultConfig()
|
|
DelightConfig cfg = DelightConfigFinder.getDefaultConfig()
|
|
DelightServer server = new DelightServer(cfg)
|
|
DelightServer server = new DelightServer(cfg)
|
|
.port( 8080 )
|
|
.port( 8080 )
|
|
.path( "/example-delight-webapp/delight" )
|
|
.contextPath( "/example-delight-webapp/delight" )
|
|
.init( backend -> {
|
|
.init( backend -> {
|
|
backend.addHandlerByClass("handler-x", ServiceImpl.class);
|
|
backend.addHandlerByClass("handler-x", ServiceImpl.class);
|
|
});
|
|
});
|
... | | ... | |