summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/guice/WebModule.java
diff options
context:
space:
mode:
authorPaul Martin <paul@paulsputer.com>2015-10-10 12:46:51 +0100
committerPaul Martin <paul@paulsputer.com>2015-10-10 12:50:00 +0100
commitbd0e83e350fc703bcae72a28c41b09d9a9cec594 (patch)
treef9c3d5112600f89f64ded2d56472664db185750a /src/main/java/com/gitblit/guice/WebModule.java
parentf2a9b239d2605b36401dd723ac22c195b938f8e0 (diff)
downloadgitblit-bd0e83e350fc703bcae72a28c41b09d9a9cec594.tar.gz
gitblit-bd0e83e350fc703bcae72a28c41b09d9a9cec594.zip
Git-LFS support
+ Metadata maintained in append-only JSON file providing complete audit history. + Filestore menu item + Lists filestore items + Current size and availability + Link to GitBlit Filestore help page (top right) + Hooks into existing repository permissions + Uses default repository path for out-of-box operation with Git-LFS client + accessRestrictionFilter now has access to http method and auth header + Testing for servlet and manager
Diffstat (limited to 'src/main/java/com/gitblit/guice/WebModule.java')
-rw-r--r--src/main/java/com/gitblit/guice/WebModule.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/guice/WebModule.java b/src/main/java/com/gitblit/guice/WebModule.java
index a4062703..7c83e455 100644
--- a/src/main/java/com/gitblit/guice/WebModule.java
+++ b/src/main/java/com/gitblit/guice/WebModule.java
@@ -26,6 +26,7 @@ import com.gitblit.servlet.DownloadZipFilter;
import com.gitblit.servlet.DownloadZipServlet;
import com.gitblit.servlet.EnforceAuthenticationFilter;
import com.gitblit.servlet.FederationServlet;
+import com.gitblit.servlet.FilestoreServlet;
import com.gitblit.servlet.GitFilter;
import com.gitblit.servlet.GitServlet;
import com.gitblit.servlet.LogoServlet;
@@ -62,12 +63,14 @@ public class WebModule extends ServletModule {
bind(AvatarGenerator.class).toProvider(AvatarGeneratorProvider.class);
// servlets
+ serveRegex(FilestoreServlet.REGEX_PATH).with(FilestoreServlet.class);
serve(fuzzy(Constants.R_PATH), fuzzy(Constants.GIT_PATH)).with(GitServlet.class);
serve(fuzzy(Constants.RAW_PATH)).with(RawServlet.class);
serve(fuzzy(Constants.PAGES)).with(PagesServlet.class);
serve(fuzzy(Constants.RPC_PATH)).with(RpcServlet.class);
serve(fuzzy(Constants.ZIP_PATH)).with(DownloadZipServlet.class);
serve(fuzzy(Constants.SYNDICATION_PATH)).with(SyndicationServlet.class);
+
serve(fuzzy(Constants.FEDERATION_PATH)).with(FederationServlet.class);
serve(fuzzy(Constants.SPARKLESHARE_INVITE_PATH)).with(SparkleShareInviteServlet.class);
@@ -98,7 +101,8 @@ public class WebModule extends ServletModule {
filter(fuzzy(Constants.RPC_PATH)).through(RpcFilter.class);
filter(fuzzy(Constants.ZIP_PATH)).through(DownloadZipFilter.class);
filter(fuzzy(Constants.SYNDICATION_PATH)).through(SyndicationFilter.class);
-
+
+
// Wicket
String toIgnore = Joiner.on(",").join(Constants.R_PATH, Constants.GIT_PATH, Constants.RAW_PATH,
Constants.PAGES, Constants.RPC_PATH, Constants.ZIP_PATH, Constants.SYNDICATION_PATH,