# How to setup event from API GW resource in root

**URL:** <https://forum.serverless.com/t/how-to-setup-event-from-api-gw-resource-in-root/685>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [October 29, 2016, 5:17am UTC](https://forum.serverless.com/t/how-to-setup-event-from-api-gw-resource-in-root/685 "2016-10-29T05:17:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronaldwidha](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/ronaldwidha/32/257_2.png) [@ronaldwidha](https://forum.serverless.com/u/ronaldwidha)\
**Post date:** [October 29, 2016, 5:17am UTC](https://forum.serverless.com/t/how-to-setup-event-from-api-gw-resource-in-root/685/1 "2016-10-29T05:17:26Z")

</div>

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

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

```

---

<div class="post-metadata">

**Author:** ![rowanu](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/rowanu/32/75_2.png) [@rowanu](https://forum.serverless.com/u/rowanu)\
**Post date:** [November 1, 2016, 4:21am UTC](https://forum.serverless.com/t/how-to-setup-event-from-api-gw-resource-in-root/685/2 "2016-11-01T04:21:10Z")

</div>

It’s a work in progress, see [this PR](https://github.com/serverless/serverless/issues/1738).
