To use the routes, you need to manually activate them through the method use.
use
app.use(req, res)
Make sure that both req and res are a class that has identical properties with WEBrickâs Request and Response Objects.
req
res