Node Auth fix and simple usage test

This commit is contained in:
2025-12-27 02:48:32 +01:00
parent 38c2c9fb6d
commit d92b92450f
7 changed files with 323 additions and 17 deletions
+14
View File
@@ -0,0 +1,14 @@
"use server";
import axios from "axios";
export async function getDocker(
node_ip: string,
key: string
): Promise<{ version: string }> {
return await (
await axios.get(`http://${node_ip}:3000/api/get-docker`, {
headers: { Authorization: `ApiKey ${key}` },
})
).data;
}