# `visibility.public_not_allowed`

Declaration can't be public.

Area 1, [Project layout and modules](../topics/project-layout-and-modules.md); not declinable; the next step is usually the agent's.

A domain offers other domains its types, entities, queries, libraries and
actions, and their tests, fixtures and seeds its fixtures; nothing else is
`public`:


```jadpo
public routes Todos {
    prefix: /todos
}
```

```text
error: A route group can't be `public`
 --> domains/planning/routes/todos.jadpo:1:1
  |
1 | public routes Todos {
  | ^^^^^^ not part of a domain's interface
  reason: A route group is a trigger: nothing calls it, so there is nothing to offer another domain; who reaches a route is decided by the route and its policy.
  next: Remove `public` (agent)
  rule: visibility.public_not_allowed
  help: https://jadpo.dev/docs/errors/visibility.public_not_allowed

check failed: 1 error, 2 files
```
