MCPcopy
hub / github.com/vitejs/vite / use

Method use

packages/vite/src/types/connect.d.ts:64–64  ·  view source on GitHub ↗

* Utilize the given middleware `handle` to the given `route`, * defaulting to _/_. This "route" is the mount-point for the * middleware, when given a value other than _/_ the middleware * is only effective when that segment is present in the request's * pathname. * * Fo

(fn: NextHandleFunction)

Source from the content-addressed store, hash-verified

62 * not be invoked for _/_, or _/posts_.
63 */
64 use(fn: NextHandleFunction): Server
65 use(fn: HandleFunction): Server
66 use(route: string, fn: NextHandleFunction): Server
67 use(route: string, fn: HandleFunction): Server

Callers 15

previewFunction · 0.80
_createServerFunction · 0.80
configureServerFunction · 0.80
configurePreviewServerFunction · 0.80
createServerFunction · 0.80
createServerFunction · 0.80
createServerFunction · 0.80
serveFunction · 0.80
serveFunction · 0.80
createServerFunction · 0.80
configureServerFunction · 0.80
configurePreviewServerFunction · 0.80

Calls

no outgoing calls

Tested by 2

serveFunction · 0.64
serveFunction · 0.64