As said by @JonSG and @Chris, I needed to create a route method before the
app.run()
to make the code work. Thanks!