You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If set to `true`, `fastify-static` adds a wildcard route to serve files.
79
+
If set to `false`, `fastify-static` globs the filesystem for all defined
80
+
files in the served folder, and just creates the routes needed for
81
+
those.
82
+
83
+
The default options of https://www.npmjs.com/package/glob are applied
84
+
for getting the file list.
85
+
74
86
#### Disable serving
75
87
76
88
If you'd just like to use the reply decorator and not serve whole directories automatically, you can simply pass the option `{ serve: false }`. This will prevent the plugin from serving everything under `root`.
0 commit comments