mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
remove
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import { findAdmin } from "./admin";
|
||||
|
||||
export const isValidLicense = async () => {
|
||||
const admin = await findAdmin();
|
||||
|
||||
const result = await fetch("http://127.0.0.1:4000/v1/validate-license", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
licenseKey: admin.licenseKey,
|
||||
}),
|
||||
});
|
||||
|
||||
const data = await result.json();
|
||||
return data.valid;
|
||||
};
|
||||
Reference in New Issue
Block a user