Skip to content

Commit

Permalink
remove redundant cache setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliiiu committed Jan 13, 2025
1 parent 335074c commit b5b9a39
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/pages/api/fetch-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default async function handler(
try {
const { walletAddress } = req.query
if (!walletAddress) {
setCacheHeaders(res)
return res
.status(400)
.json({ status: false, message: 'Wallet address are needed' })
Expand Down
1 change: 0 additions & 1 deletion src/pages/api/protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default async function handler(
try {
const { protocolId, id } = req.query
if (!protocolId || !id) {
setCacheHeaders(res)
return res.status(400).json({
status: false,
message: 'protocol id and wallet address are needed',
Expand Down
2 changes: 0 additions & 2 deletions src/pages/api/token-info.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { NextApiRequest, NextApiResponse } from 'next'
import { ResponseData } from '@/types/TreasuryTokenType'
import { fetchDataFromAPI } from '@/utils/fetchData.utils'
import { setCacheHeaders } from '@/utils/cache'

export default async function handler(
req: NextApiRequest,
Expand All @@ -14,7 +13,6 @@ export default async function handler(
}
const { ids, chain } = req.query
if (!ids || !chain) {
setCacheHeaders(res)
return res.status(400).json({
status: false,
message: 'List of Token address and chain id are needed',
Expand Down

0 comments on commit b5b9a39

Please sign in to comment.