mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
using freemarker to render index.html
This commit is contained in:
@@ -64,6 +64,9 @@ import sonia.scm.security.MessageDigestEncryptionHandler;
|
||||
import sonia.scm.security.SecurityContext;
|
||||
import sonia.scm.store.JAXBStoreFactory;
|
||||
import sonia.scm.store.StoreFactory;
|
||||
import sonia.scm.template.FreemarkerTemplateHandler;
|
||||
import sonia.scm.template.TemplateHandler;
|
||||
import sonia.scm.template.TemplateServlet;
|
||||
import sonia.scm.user.UserManager;
|
||||
import sonia.scm.user.xml.XmlUserManager;
|
||||
import sonia.scm.util.DebugServlet;
|
||||
@@ -112,6 +115,9 @@ public class ScmServletModule extends ServletModule
|
||||
/** Field description */
|
||||
public static final String PATTERN_DEBUG = "/debug.html";
|
||||
|
||||
/** Field description */
|
||||
public static final String PATTERN_INDEX = "/index.html";
|
||||
|
||||
/** Field description */
|
||||
public static final String PATTERN_PAGE = "*.html";
|
||||
|
||||
@@ -227,6 +233,10 @@ public class ScmServletModule extends ServletModule
|
||||
// plugin resources
|
||||
serve(PATTERN_PLUGIN_SCRIPT).with(ScriptResourceServlet.class);
|
||||
|
||||
// template
|
||||
bind(TemplateHandler.class).to(FreemarkerTemplateHandler.class);
|
||||
serve(PATTERN_INDEX, "/").with(TemplateServlet.class);
|
||||
|
||||
// jersey
|
||||
Map<String, String> params = new HashMap<String, String>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user