about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-02-12 23:13:54 +0100
committerEmile <hanemile@protonmail.com>2019-02-12 23:13:54 +0100
commit10366e331346dbcce6c9e0fe8651f0dfe9743a8f (patch)
treee854d6166d242357a8e7ad79102ad1a93fd0d726
parentd422c58b71a2d1f61530cc4aed432cb032242614 (diff)
added the centerofmassendpoint and the genforesttree endpoint
-rw-r--r--.gitignore1
-rw-r--r--http.go8
2 files changed, 9 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index d3beee5..c3c927c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
 *.o
 *.a
 *.so
+*.csv
 
 # Folders
 _obj
diff --git a/http.go b/http.go
index fde7423..d19e1a0 100644
--- a/http.go
+++ b/http.go
@@ -85,3 +85,11 @@ func listOfStarsCsvEndpoint() []string {
 func updateTotalMassEndpoint(index int64) {
 	updateTotalMass(index)
 }
+
+func updateCenterOfMassEndpoint(index int64) {
+	updateCenterOfMass(index)
+}
+
+func genForestTreeEndpoint(index int64) string {
+	return genForestTree(index)
+}