[SOLVED]Express within serverless


I am using serverless with AWS and lambda and I make my tests with serverless–offline.

Unfortunately, I am not able to switch from page to page in my web app. Maybe it’s too late and I’m not able to think straigth, but can someone give me the instruction to redirect a user on an other page when he clicks on a button?

Here is my serverless.yml:

    handler: index.inspirilabHandler
        - views/main.ejs
        - views/page2.ejs
      - http:
          path: /
          method: get

Here is the index.js (without the imports):

app.get('/', function(req, res) {

app.get('/page2', function(req, res) {

Here is one button:

<form action="/page2" method="get">

        <button type="submit" class="btn btn-default">PAGE2</button>

What is the link I should provide to my form?

Newbie in serverless, but your tool is amazing!

Check out this post https://serverless.com/blog/serverless-express-rest-api/ by @alexdebrie1 it should help =)

As I said, too tired to work properly. I was following (not well enough seems like…) this article. Thank!