mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
them into gitop projects for flexibility. Change to use GitFilter instead of GitServlet so that Git repository can be served without a prefix.
30 lines
775 B
Java
30 lines
775 B
Java
package com.pmease.gitop.web;
|
|
|
|
import javax.inject.Singleton;
|
|
|
|
import com.pmease.commons.jetty.ServletConfigurator;
|
|
import com.pmease.commons.loader.AbstractPluginModule;
|
|
import com.pmease.commons.wicket.AbstractWicketConfig;
|
|
import com.pmease.gitop.web.resource.RestResourceModule;
|
|
|
|
/**
|
|
* NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
|
|
*
|
|
*/
|
|
public class WebModule extends AbstractPluginModule {
|
|
|
|
@Override
|
|
protected void configure() {
|
|
super.configure();
|
|
|
|
// put your guice bindings here
|
|
bind(AbstractWicketConfig.class).to(GitopWebApp.class);
|
|
bind(SitePaths.class).in(Singleton.class);
|
|
|
|
contribute(ServletConfigurator.class, WebServletConfigurator.class);
|
|
|
|
install(new RestResourceModule());
|
|
}
|
|
|
|
}
|