[**Documentation**](../../../README)

***

[Documentation](../../../README) / [zerotal](../../README) / [index](../README) / RoutingEntry

# Type Alias: RoutingEntry

> **RoutingEntry** = `string` \| \{ `file`: `string`; `prefix?`: `string`; `middleware?`: `MiddlewareInput`; \}

Defined in: [packages/core/src/application/Application.ts:87](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/application/Application.ts#L87)

A single entry in a `routing()` config map.

Short form (string): just the file path — defaults apply for "web" and "api" keys.
Long form (object): explicit file + optional prefix/middleware overrides.

Built-in defaults:
  "web" → prefix: "",     middleware: ["web"]
  "api" → prefix: "/api", middleware: ["api"]
Custom keys must declare both `prefix` and `middleware` explicitly.
