html – Form action GET input | the submit button sends the action + route? id = "what the user wrote" & # 39;

I have researched a lot about how to do it and I have not been able to answer. This is the situation:
I have a listById method that needs to take the id that comes in the URL through the form.
In the event of an error in the system,
Hence, my route manager can not handle this.
HTML:

search

Route manager:

app.get (& # 39; / listById /: id & # 39 ;, controlcontact.listById);

METHOD called on the route:
contact.listById = (req, res) => {

request.GET (+ ExternalAPI req.params.id,
(error, response, body) => {
res.render (& # 39; listById & # 39; {
Contact: JSON.parse (body)
})
});  

}

Example: if in the input you write "12345", the submit forwards to "/ listById /? Id = 12345"
I wanted to solve this only using HTML, without the need to create javascript function.