To use the routes, you need to manually activate them through the method 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.