Skip to content

mappings

Lists every route registered in the application, actuator routes included.

Property Value
ID mappings
Path GET /actuator/mappings
Route name actuator.mappings
Exposure Not exposed by default
Middleware middleware, then mappings.middleware
Configuration mappings
Class Nwidart\Actuator\Http\Controllers\MappingsController

HTTP 200 with a JSON object holding routes, a list in registration order. Each route:

Key Type Description
methods array HTTP methods, for example ["GET", "HEAD"].
uri string URI pattern without a leading slash, for example users/{user}.
name string or null Route name.
action string Controller action, Closure for closure routes.
middleware array Every middleware of the route, groups included. Non-string middleware shows its type.
domain string or null Domain constraint.
Terminal window
curl http://localhost/actuator/mappings
{
"routes": [
{
"methods": ["GET", "HEAD"],
"uri": "users/{user}",
"name": "users.show",
"action": "App\\Http\\Controllers\\UserController@show",
"middleware": ["web", "auth"],
"domain": null
},
{
"methods": ["GET", "HEAD"],
"uri": "actuator/health",
"name": "actuator.health",
"action": "Nwidart\\Actuator\\Http\\Controllers\\HealthController@health",
"middleware": [],
"domain": null
}
]
}