org.webpieces.plugins.hsqldb.H2DbRoutes Maven / Gradle / Ivy
package org.webpieces.plugins.hsqldb;
import static org.webpieces.router.api.routes.Port.BOTH;
import org.webpieces.ctx.api.HttpMethod;
import org.webpieces.router.api.routebldr.DomainRouteBuilder;
import org.webpieces.router.api.routebldr.RouteBuilder;
import org.webpieces.router.api.routes.Routes;
public class H2DbRoutes implements Routes {
private String urlPath;
public H2DbRoutes(H2DbConfig config) {
urlPath = config.getPluginPath();
}
@Override
public void configure(DomainRouteBuilder domainRouteBldr) {
RouteBuilder bldr = domainRouteBldr.getAllDomainsRouteBuilder();
bldr.addRoute(BOTH, HttpMethod.GET, urlPath, "H2DbController.databaseGui", H2DbRouteId.GET_DATABASE_PAGE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy