Style pages

This commit is contained in:
René Pfeuffer
2019-06-05 11:52:36 +02:00
parent a5c65b4e2c
commit c7875e7f78
4 changed files with 88 additions and 35 deletions

View File

@@ -3,6 +3,8 @@ package sonia.scm.update;
import com.google.inject.servlet.ServletModule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sonia.scm.PushStateDispatcher;
import sonia.scm.WebResourceServlet;
class MigrationWizardModule extends ServletModule {
@@ -15,6 +17,8 @@ class MigrationWizardModule extends ServletModule {
LOG.info("= STARTING MIGRATION SERVLET =");
LOG.info("= =");
LOG.info("==========================================================");
bind(PushStateDispatcher.class).toInstance((request, response, uri) -> {});
serve("/images/*", "/styles/*").with(WebResourceServlet.class);
serve("/*").with(MigrationWizardServlet.class);
}
}