All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webpieces.plugins.backend.BackendPlugin Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package org.webpieces.plugins.backend;

import java.util.List;

import org.webpieces.plugins.backend.login.BackendLoginRoutes;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;

import com.google.common.collect.Lists;
import com.google.inject.Module;

public class BackendPlugin implements Plugin {

	public BackendPlugin(BackendConfig config) {
		super();
	}
	
	@Override
	public List getGuiceModules() {
		return Lists.newArrayList(new BackendModule());
	}

	@Override
	public List getRouteModules() {
		return Lists.newArrayList(
			new BackendLoginRoutes("/org/webpieces/plugins/backend/login/BackendLoginController", 
					BackendRoutes.BACKEND_ROUTE, BackendRoutes.BACKEND_ROUTE+"/secure.*")
		);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy