$fetch goes to the incorrect url

Attache are some screenshots. I'm attempting to call my local api endpoint below, but somehow its being sent to https://localhost:7196/Account/Login?ReturnUrl=%2Fapi%2FStore%2FProduct%2FAdd. These is a currently hard-coded endpoint and should go to Product/Add. I'm using nuxt 3.
const x = await $fetch('https://localhost:7196/api/Store/Product/Add', {
method: "POST",
body: DTO
})
const x = await $fetch('https://localhost:7196/api/Store/Product/Add', {
method: "POST",
body: DTO
})
the last screenshot shows the swagger endpoint (.NET web api) my nuxt config is below as well:
No description
No description
No description
2 Replies
Candyroll93
Candyroll93OP3mo ago
nuxt config
No description
Candyroll93
Candyroll93OP3mo ago
that was it! attention to detail ugh thank you
Want results from more Discord servers?
Add your server