about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)
+}