How to set up aws lambda to use same endpoint for different stages

While searching for a solution to my problem I stumbled upon " Stages in Serverless Framework" chapter in “Extra Credit > Backend”.

I want to create a lambda and use single endpoint and only the path prefix changing for stages. I think this was possible a while ago without any setting … but now it doesn’t work. I always get different endpoints:

But I would like to have:

My yml file looks like:

service: lambda-helloworld
  name: aws
  runtime: nodejs10.x
    handler: handler.hello
      - http:
          path: first-endpoint
          method: GET

I need help setting this up. Would love your suggestions.

I’m actually not sure how to do this without googling for it. In the guide, all the prod vs dev endpoints are different because that’s how Serverless Framework does stages. It just creates two separate API Gateway projects.