summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/fileserver/command.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2023-08-29 09:34:20 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2023-08-29 09:34:20 -0600
commited8bb13c5df7656647ca7fc1fd09237631a6767c (patch)
tree4119bcd50c6ee18a8fb2d4f268bca7267d8ac5ff /modules/caddyhttp/fileserver/command.go
parentb7e472d54884de4ecd6147784c74fb448180e9d1 (diff)
fileserver: Export BrowseTemplate
This allows programs embedding Caddy to customize the browse template.
Diffstat (limited to 'modules/caddyhttp/fileserver/command.go')
-rw-r--r--modules/caddyhttp/fileserver/command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/command.go b/modules/caddyhttp/fileserver/command.go
index fb145cb..895c4f0 100644
--- a/modules/caddyhttp/fileserver/command.go
+++ b/modules/caddyhttp/fileserver/command.go
@@ -66,7 +66,7 @@ respond with a file listing.`,
Short: "Exports the default file browser template",
Example: "caddy file-server export-template > browse.html",
RunE: func(cmd *cobra.Command, args []string) error {
- _, err := io.WriteString(os.Stdout, defaultBrowseTemplate)
+ _, err := io.WriteString(os.Stdout, BrowseTemplate)
return err
},
})