[SOLVED] No endpoints to deploy detected

Is the only place where I specify API Gateway endpoints http section of functions in serverless.yml, right? I have specified several events, one of them like this:

...
functions:
  login:
    handler: auth.login
    events:
      - http:
        method: post
        path: auth/login
        cors: true
...

But sls info says endpoints: none and sls deploy deploys only functions but no API. I use SLS 1.0.0 rc1. It is the same if I remove all the other events and leave there only this one for login function. But when I create new service from teplate and deploy, it’s endpoint is created.

Ok, solved. I need two indentations under http (four spaces instead of two). Sorry for messing this forum.