Skip to content

Commit

Permalink
fix api (solana-labs#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 authored Feb 13, 2023
1 parent 1bf8daa commit 48f1a8c
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ config = withTM({
return config
},

pageExtensions: ['mdx', 'md', 'jsx', 'tsx'], // .ts files are not pages
pageExtensions: ['mdx', 'md', 'jsx', 'tsx', 'api.ts'], // .ts files are not pages

env: {
MAIN_VIEW_SHOW_MAX_TOP_TOKENS_NUM:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { getAllSplGovernanceProgramIds } from './tools/realms'

// Returns unique spl-governance program ids
const handler = (req: NextApiRequest, res: NextApiResponse) => {
console.log('123123')
const cluster = req.query.cluster?.toString() || undefined
res.status(200).json(getAllSplGovernanceProgramIds(cluster))
}
Expand Down

0 comments on commit 48f1a8c

Please sign in to comment.