Skip to content

Commit

Permalink
docs: update inngest macro docs
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed Jul 28, 2023
1 parent 2aa65c6 commit e8a6d28
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/development/serve-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ defmodule MyApp.Router do
end
```

Accepted arguments for the `inngest` macros are

- `path`
- `opts`

#### opts

- `func` - the list of modules. e.g. `[MyApp.EventFn, MyApp.CronFn]`
- `path` - the path or paths to the inngest function modules. e.g. `path: "inngest/**/*.ex"`

Among the options, `path` takes precedence.

There are 2 routers available based on what you're using for exposing HTTP endpoints for
your apps:

Expand Down

0 comments on commit e8a6d28

Please sign in to comment.