generated from Luis/nextjs-python-web-template
[Functionality] Request DID Resolution
- fetch resolution data - adjustments
This commit is contained in:
@@ -28,17 +28,7 @@ export default function AccessPoint() {
|
||||
.then((resp) =>
|
||||
resp.json().then((jsonData) => {
|
||||
console.log(jsonData);
|
||||
|
||||
const transformedData = jsonData.map(
|
||||
(item: { service_name: any; entity_did: any; network: any }) => ({
|
||||
entity_name: item.service_name,
|
||||
entity_did: item.entity_did,
|
||||
network: item.network,
|
||||
ip_address: "",
|
||||
}),
|
||||
);
|
||||
|
||||
setRepositoryData(transformedData);
|
||||
setRepositoryData(jsonData);
|
||||
}),
|
||||
)
|
||||
.then()
|
||||
|
||||
Reference in New Issue
Block a user