mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Added /postback on the end of postbackUrl.
This commit is contained in:
parent
4dc093fcee
commit
df751500c5
2 changed files with 1 additions and 6 deletions
|
@ -35,7 +35,7 @@ public class WLDirectoryNodeSnapshot implements CandidateSnapshot {
|
|||
JsonObject jsonObject = new JsonObject();
|
||||
jsonObject.addProperty("latestVerId", previousVersionID);
|
||||
jsonObject.add("files", getFilesAsJson());
|
||||
jsonObject.addProperty("postbackUrl", projectURL + "/" + postbackKey);
|
||||
jsonObject.addProperty("postbackUrl", projectURL + "/" + postbackKey + "/postback");
|
||||
System.out.println(jsonObject);
|
||||
return jsonObject;
|
||||
}
|
||||
|
|
|
@ -16,10 +16,7 @@ import uk.ac.ic.wlgitbridge.writelatex.api.request.push.exception.SnapshotPostEx
|
|||
import uk.ac.ic.wlgitbridge.writelatex.model.WLDataModel;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.locks.Lock;
|
||||
|
||||
/**
|
||||
* Created by Winston on 16/11/14.
|
||||
|
@ -28,13 +25,11 @@ public class WriteLatexAPI implements WriteLatexDataSource {
|
|||
|
||||
private final WLDataModel dataModel;
|
||||
private final PostbackManager postbackManager;
|
||||
private final Map<String, Lock> projectLocks;
|
||||
private final ProjectLock mainProjectLock;
|
||||
|
||||
public WriteLatexAPI(WLDataModel dataModel) {
|
||||
this.dataModel = dataModel;
|
||||
postbackManager = new PostbackManager();
|
||||
projectLocks = new HashMap<String, Lock>();
|
||||
mainProjectLock = new ProjectLock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue