I am using Express and Router to create the links of my api, but for some reason when I try to post it throws me an error 404 , but if you find me any get . When I check the browser console I can see that it does the post with the parameters of my form, but it does not find the route
// rutas de ligas
const express = require('express');
const router = express.Router();
const pool = require('../../db');
router.get('/add', (req, res) => {
res.render('links/add');
});
router.get('/x', (req, res) => {
res.send('x');
});
router.post('/add', (req, res) => {
console.log(req.body);
res.send('recibido');
});
module.exports = router;
<form action="/links/adds" method="POST">
<div class="form-group">
<label for="">Nombre Del Proyecto</label><br>
<input style="width: 50%;" type="text" name="name" autofocus><br>
<label for="">URL</label><br>
<input style="width: 50%;" type="url" name="url" autofocus><br>
<label for="">Descripción</label><br>
<textarea style="width: 100%;" name="descrip" placeholder="Descripción de proyecto">
</textarea>
<br>
<br>
<div class="card-footer">
<input type="submit" value="submit" class="btn btn-secondary pull-right">
</div>
</div>
</form>