Bind ProjectServlet dependencies in WebModule

I don't install GitOverHttpModule in my environment's server, which
means the dependencies for ProjectServlet are not set up correctly.
Move this back to WebModule, which I do install.

Change-Id: I0235990901b284a8e45c8919c4dca4388d595987
This commit is contained in:
Shawn O. Pearce
2012-01-12 18:17:54 -08:00
parent ce5d7fb332
commit 3b17e70c7c
2 changed files with 1 additions and 2 deletions

View File

@@ -31,8 +31,6 @@ public class GitOverHttpModule extends ServletModule {
@Override
protected void configureServlets() {
install(new ProjectServlet.Module());
filter("/p/*").through(ProjectAccessPathFilter.class);
if (authConfig.isTrustContainerAuth()) {
filter("/p/*").through(ContainerAuthFilter.class);

View File

@@ -119,6 +119,7 @@ public class WebModule extends FactoryModule {
install(new UrlModule());
install(new UiRpcModule());
install(new GerritRequestModule());
install(new ProjectServlet.Module());
bind(GitWebConfig.class).toInstance(gitWebConfig);
if (gitWebConfig.getGitwebCGI() != null) {