add new logic routes
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user