Send-email-confirmation route not working

System Information
  • Strapi Version: v4.10.2
  • Operating System: macos
  • Database: postgres

I’m trying to add functionality to resend the confirmation email but I just get a network error every time i try to call the route.

const resendRes = await axios.post(`http://localhost:1337/api/auth/send-email-confirmation`, {
            email: email, // React state variable
          });

This is my api call on my frontend. I can’t call the route through postman either and I’m using nodemailer to send emails. Am I doing something wrong?

I suspect that route is under the ‘admin’ path and not the ‘api’ path. Try /admin/auth/send-email-confirmation.