# `Alternera.Resource.Verifiers.Expose`
[🔗](https://github.com/10e-ab/alternera-sdk/blob/v0.9.0/alternera_resource_sdk/lib/alternera/resource/verifiers/expose.ex#L1)

Rule 5: every route in `expose api:` has a primary action of its type
(`:index` and `:get` a read, `:post` a create, `:patch` an update,
`:delete` a destroy), every other name in it and every name in
`read_only_actions` is a generic action of the resource (`action :name,
type`), and every action in `expose mcp:` exists.

# `primary_action`

```elixir
@spec primary_action(module() | map(), atom()) :: Ash.Resource.Actions.action() | nil
```

The primary action of `type`, or the only one of that type; `nil` when there is none.

# `route_type`

```elixir
@spec route_type(atom()) :: atom()
```

The action type a JSON:API route kind runs.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
