about summary refs log tree commit diff
path: root/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'http.go')
-rw-r--r--http.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/http.go b/http.go
index 7df8ed0..2f87c5d 100644
--- a/http.go
+++ b/http.go
@@ -18,7 +18,7 @@ package main
 
 import (
 	"database/sql"
-	"git.darknebu.la/GalaxySimulator/db-container/db_actions"
+	"git.darknebu.la/GalaxySimulator/db_actions"
 	"git.darknebu.la/GalaxySimulator/structs"
 )
 
@@ -95,3 +95,14 @@ func updateCenterOfMassEndpoint(db *sql.DB, index int64) {
 func genForestTreeEndpoint(db *sql.DB, index int64) string {
 	return db_actions.GenForestTree(db, index)
 }
+
+func testCalcEndpoint(db *sql.DB) {
+
+	star := structs.Star2D{
+		structs.Vec2{110, 110},
+		structs.Vec2{0, 0},
+		1000,
+	}
+
+	db_actions.CalcAllForces(db, star, 0.1)
+}