#API Routes dont work in Windows
1 messages · Page 1 of 1 (latest)
I have added a file in src/api/store/custom/route.js
export async function GET(req,res){
res.sendStatus(200);
}
all works for me
This is what I get.
Damn I guess if it works for you its fine, its something on my end
Sorry for bothering you, thank you for helping me.
Do you actually run your backend at 9000?
Can you show npm list | grep medusa
Also what does http://localhost:9000/health give?
Ahh i see the console.log
Backend is at default port. In the above SS you can see "Server running on 9000". Health returns OK
npm list |grep medusa: C:\Users\User\Desktop\medusaAPIROUTESTEST
Ahh, windows doesn't have grep
I ran it in bash its just empty
do you have actually medusa 1.17.2 in package.json?
Yes.
Might be something with Windows, not sure.
Yeah, ill try it in a vm real quick
Yea it works in an ubuntu vm. Could be a windows issue or MY windows install issue.