diff --git a/api/nodes/list.php b/api/nodes/list.php new file mode 100644 index 0000000..79e69f3 --- /dev/null +++ b/api/nodes/list.php @@ -0,0 +1,9 @@ +checkAuth()) { + die('{"status":500, "error":"Unauthorized"}'); +} + diff --git a/api/setup/setup.php b/api/setup/setup.php index e877400..e608d37 100755 --- a/api/setup/setup.php +++ b/api/setup/setup.php @@ -53,6 +53,16 @@ CREATE TABLE IF NOT EXISTS api_keys ( $db->exec($sql); +$sql = " +CREATE TABLE IF NOT EXISTS nodes ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR(50) UNIQUE NOT NULL, + endpoint VARCHAR(200) UNIQUE NOT NULL +) +"; + +$db->exec($sql); + $sql = " INSERT INTO users (username, mail, passwd) VALUES (:user, :mail, :passwd) "; diff --git a/front/panel/create_server.html b/front/panel/create_server.html index a5aa3e4..5188031 100644 --- a/front/panel/create_server.html +++ b/front/panel/create_server.html @@ -2141,5 +2141,6 @@ }) .catch(error => console.log("API Error: " + error)) - + + \ No newline at end of file diff --git a/mcServ.db b/mcServ.db index bf8bd0f..7bd1426 100644 Binary files a/mcServ.db and b/mcServ.db differ diff --git a/tailadmin/src/create_server.html b/tailadmin/src/create_server.html index 30d0b03..b310b2f 100644 --- a/tailadmin/src/create_server.html +++ b/tailadmin/src/create_server.html @@ -83,7 +83,7 @@
- - -
- -
- - - - - - - - - - -
-
- - -
- - -
- - - - - - -
-
- - -
- -
- - - - - - -
-
- - -
- - -
- - - - - - - - -
-
@@ -304,7 +134,7 @@

- Select Inputs + Accessibility

- Select Input + Select Node
- -