From f58b0729afbd7ced82a7d895ffc24f07b6fff505 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 10 Feb 2019 17:09:07 +0100 Subject: implemented the updateTotalMass function --- http.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'http.go') 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) +} -- cgit 1.4.1