Closed paulinal3 closed 2 years ago
Here's sample of the syntax: https://www.codegrepper.com/code-examples/javascript/axios+post+request+send+bearer+token
You've got the right idea, you just need to put that authorization object in the axios.get after the url
Oh my bad!! Sorry I was able to figure that part out! Now I only need someone to talk through my ERD to make sure it's right before I start creating models
Oh good! Why don't you open a new request with a screenshot of the erd that way everyone can get eyes on it
The other API I'm using says it "requires a token to be sent in as an authorization header" Exact format for sending token:
And the docs don't show anything about adding the token at the end of the api url so where would I put the authorization header? Does it go before every axios call or at the top of the page? I have the token already saved in my .env
The code below is what I've tried but nodemon keeps spitting out a really long chunk of code and ending with saying
[nodemon] app crashed - waiting for file changes before starting...
Also wondering if someone can just take a look at my ERD a second time to make sure it makes sense.