add new logic routes

This commit is contained in:
Profile Profile
2026-01-19 16:28:24 +03:00
parent a62ee9c278
commit c5b00af520
4 changed files with 136 additions and 22 deletions

View File

@@ -72,9 +72,14 @@ export interface NodeByUriResponse {
}
export async function getNodeByURI(uri: string): Promise<NodeByUriResponse> {
console.log('Fetching node for URI:', uri);
const normalizedUri = uri.startsWith('/') ? uri : `/${uri}`;
const cacheKey = `node-by-uri:${normalizedUri}`;
return await cache.wrap(
cacheKey,
async () => {