How to setup event from API GW resource in root

I’m trying to make this work, but it doesn’t seem to. How would you setup a root resource in serverless?

functions:
  generic:
    handler: handler.generic
    events:
      - http: ANY /

It’s a work in progress, see this PR.