Buildin Page tested

This commit is contained in:
2025-01-02 16:17:30 +03:00
parent 4bf79cff55
commit 24d2169132
29 changed files with 1796 additions and 50 deletions

View File

@@ -1,7 +1,6 @@
"use server";
import { fetchData, fetchDataWithToken } from "@/apicalls/api-fetcher";
import { baseUrl, cookieObject, tokenSecret } from "@/apicalls/basics";
import { HeadersAndValidations } from "@/apicalls/validations/validationProcesser";
const headersAndValidationEndpoint = `${baseUrl}/validations/endpoint`;
@@ -28,15 +27,14 @@ async function retrieveHeadersEndpoint({ endpoint }: EndpointInterface) {
}
return {
status: selectResponse.status,
headers: {},
message: selectResponse.message,
headers: {},
};
}
async function retrieveHeadersAndValidationByEndpoint({
endpoint,
}: EndpointInterface) {
console.log("endpoint", endpoint);
const selectResponse: any = await fetchDataWithToken(
headersAndValidationEndpoint,
{
@@ -58,7 +56,6 @@ async function retrieveHeadersAndValidationByEndpoint({
return {
status: selectResponse.status,
message: selectResponse.message,
headers: null,
validated: null,
};