Getting data without using the meetup api. (This PR is not for merging!)#110
Open
SachiGoto wants to merge 2 commits intovan-squad:developfrom
Open
Getting data without using the meetup api. (This PR is not for merging!)#110SachiGoto wants to merge 2 commits intovan-squad:developfrom
SachiGoto wants to merge 2 commits intovan-squad:developfrom
Conversation
👷 Deploy request for vantecheventfinder pending review.Visit the deploys page to approve it
|
Lada496
reviewed
Nov 16, 2023
src/app/api/events/mockData/route.ts
Outdated
| import axios from "axios"; | ||
|
|
||
| const handler = async (req: NextApiRequest, res: NextApiResponse) => { | ||
| if (req.method === "POST") { |
Contributor
There was a problem hiding this comment.
@SachiGoto Thank you for providing a new idea!
You are using API routes for the page router, which is one causal issue of failing to fetch data.
You can find the syntax for the App router here.
Member
Author
There was a problem hiding this comment.
Ah @Lada496, you are so right! I followed the documentation you attached above and write an api call differently and it worked!
I wouldn't have been able to figured it out without you!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature Description
Related Issue
** This is for viewing! Shouldn't be merged.
As I mentioned in the last meeting, I'm trying to call meetup API and get data without using meetup api key but I'm having trouble implementing it.
If any of you have time to take a look, please do!
Something you want to mention
Checklist before requesting a review