Devtools
Overview
See the modules, providers and routes of a running application.
app.http(adapter) { useDevtools { token = System.getenv("DEVTOOLS_TOKEN") } }| Endpoint | Returns |
|---|---|
GET /_devtools | a page listing modules and routes |
GET /_devtools/graph | JSON: every module with its imports, exports, controllers and providers (and each provider's scope) |
GET /_devtools/routes | JSON: every route with its served path, handler, and the guards, interceptors, filters and pipes that apply to it |
The route list shows what guards each route really has, so "is this endpoint protected?" is answered from the running application, not from reading code.
It exposes how the application is built. Turn it off in production (enabled = false) or set a token: every request then needs the header x-devtools-token. (The page reads the token from localStorage key kest-devtools-token.)
The graph shows modules and provider lists, not provider-to-provider dependency edges (the wiring is compiled, and constructor parameters are not kept at run time).