about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-02-10 17:09:07 +0100
committerEmile <hanemile@protonmail.com>2019-02-10 17:09:07 +0100
commitf58b0729afbd7ced82a7d895ffc24f07b6fff505 (patch)
treeb3999079e21c95d3d21233af17657cce89a92424
parent63b337332575256131184d19e2208bba326c426c (diff)
implemented the updateTotalMass function
-rw-r--r--http.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/http.go b/http.go
index ad74306..fde7423 100644
--- a/http.go
+++ b/http.go
@@ -16,7 +16,9 @@
 
 package main
 
-import "git.darknebu.la/GalaxySimulator/structs"
+import (
+	"git.darknebu.la/GalaxySimulator/structs"
+)
 
 // IndexEndpoint gives a basic overview over the api
 func indexEndpoint() string {
@@ -79,3 +81,7 @@ func listOfStarsCsvEndpoint() []string {
 	listOfStars := getListOfStarsCsv()
 	return listOfStars
 }
+
+func updateTotalMassEndpoint(index int64) {
+	updateTotalMass(index)
+}