use of act.ws.SecureTicketCodec in project actframework by actframework.
the class App method loadBuiltInRoutes.
private void loadBuiltInRoutes() {
router().addMapping(GET, "/asset/", new ResourceGetter("asset"), RouteSource.BUILD_IN);
router().addMapping(GET, "/~/asset/", new ResourceGetter("asset/~act"), RouteSource.BUILD_IN);
router().addMapping(GET, "/webjars/", new ResourceGetter("META-INF/resources/webjars"), RouteSource.BUILD_IN);
router().addContext("act.", "/~");
if (config.cliOverHttp()) {
Router router = router(AppConfig.PORT_CLI_OVER_HTTP);
router.addMapping(GET, "/asset/", new ResourceGetter("asset"), RouteSource.BUILD_IN);
}
SecureTicketCodec secureTicketCodec = config.secureTicketCodec();
SecureTicketHandler secureTicketHandler = new SecureTicketHandler(secureTicketCodec);
router().addMapping(GET, "/~/ticket", secureTicketHandler);
}
Aggregations