add back build time

This commit is contained in:
smanylov
2026-02-12 11:16:58 +07:00
parent 953f2f22a9
commit be1f310595
3 changed files with 57 additions and 8 deletions
+20 -2
View File
@@ -2,7 +2,6 @@
import { getSessionData, deleteSession } from '@/app/actions/session';
import { testUserData, API_BASE_URL } from '@/app/actions/definitions';
import { redirect } from 'next/navigation';
export async function getUserData() {
const userEmail = await getSessionData('email');
@@ -99,4 +98,23 @@ export async function fetchTariffs() {
} catch (error) {
console.error('error');
}
}
}
export async function getBuildData() {
try {
const response = await fetch(`${API_BASE_URL}/check/api/build`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
}
});
if (response.ok) {
return await response.json();
}
} catch (error) {
console.error('error');
}
}