Have a very simple input on a form to test a POST route :
<form method="POST" action="/user/onboarding" id="onboarding_form">
<div class="form-check">
<input class="form-check-input" id="industry" type="checkbox" value="FinTech"/>
<label class="form-check-label" for="industry"> FinTech </label>
</div>
<button type="submit" name="submit"> Complete onboarding </button>
</form>
But when I try parse the result and access using req.body.industry I'm seeing [Object: null prototype] { submit: '' } on my console.log
I've followed the steps here and have :
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
above my routes
What am I doing wrong?