diff --git a/app/api/cache/route.ts b/app/api/cache/route.ts index dc11096..4ab4708 100644 --- a/app/api/cache/route.ts +++ b/app/api/cache/route.ts @@ -3,6 +3,7 @@ import { getCacheTTL, SimpleCache } from '@/api/utils/cosmos'; import { getPackets } from '@/api/packets/route'; export async function GET(request: NextRequest) { + console.log('GET /api/cache'); // const TOKEN = process.env.TOKEN; // // if (request.headers.get('Authorization') !== `Bearer ${TOKEN}`) { diff --git a/app/api/packets/route.ts b/app/api/packets/route.ts index 0de43e7..028fafe 100644 --- a/app/api/packets/route.ts +++ b/app/api/packets/route.ts @@ -3,11 +3,9 @@ import { NextRequest, NextResponse } from 'next/server'; import { Packet, PacketStates } from 'utils/types/packet'; import { CHAIN, CHAIN_CONFIGS } from 'utils/chains/configs'; import { CachingJsonRpcProvider } from 'api/utils/provider-cache'; -import { getCacheTTL, GetTmClient, SimpleCache } from 'api/utils/cosmos'; +import { GetTmClient, SimpleCache } from 'api/utils/cosmos'; import Abi from 'utils/dispatcher.json'; -import { getChannelsConcurrently } from '@/api/utils/peptide'; - export const dynamic = 'force-dynamic'; // defaults to auto function getLookbackTime() { @@ -267,8 +265,4 @@ export async function GET(request: NextRequest) { const cache = SimpleCache.getInstance(); const allPackets = cache.get('allPackets'); return NextResponse.json(allPackets || []); - - - // cache.set('allPackets', response, getCacheTTL()); - // return NextResponse.json(response); }