Made changed files accessible via http.

This commit is contained in:
Winston Li 2014-11-16 20:02:30 +00:00
parent 30675a11d4
commit 20c48cbd92

View file

@ -14,6 +14,7 @@ import uk.ac.ic.wlgitbridge.writelatex.WriteLatexAPI;
import uk.ac.ic.wlgitbridge.writelatex.model.WLDataModel;
import javax.servlet.ServletException;
import java.io.File;
import java.net.BindException;
/**
@ -87,7 +88,7 @@ public class WLGitBridgeServer {
private Handler initResourceHandler() {
ResourceHandler resourceHandler = new ResourceHandler();
resourceHandler.setResourceBase(rootGitDirectoryPath);
resourceHandler.setResourceBase(new File(rootGitDirectoryPath, ".wlgb/atts").getAbsolutePath());
return resourceHandler;
}