mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
use a servlet instead of a restful resource
This commit is contained in:
@@ -52,6 +52,9 @@ public class HgServletModule extends ServletModule
|
||||
/** Field description */
|
||||
public static final String MAPPING_HG = "/hg/*";
|
||||
|
||||
/** Field description */
|
||||
public static final String MAPPING_HOOK = "/hook/hg/*";
|
||||
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
/**
|
||||
@@ -62,6 +65,7 @@ public class HgServletModule extends ServletModule
|
||||
protected void configureServlets()
|
||||
{
|
||||
bind(HgHookManager.class);
|
||||
serve(MAPPING_HOOK).with(HgHookCallbackServlet.class);
|
||||
|
||||
// register hg cgi servlet
|
||||
filter(MAPPING_HG).through(BasicAuthenticationFilter.class);
|
||||
|
||||
Reference in New Issue
Block a user