From 70733b8e4ce86c518e642b3bbcef9ca7a969bb00 Mon Sep 17 00:00:00 2001 From: Isaac Parker Date: Sun, 23 Feb 2020 21:00:28 -0800 Subject: [PATCH] docs: Update config import paths for module example (#10) Looks like the import path is wrong. Sanity checking against an in-tree module (https://github.com/caddyserver/caddy/blob/v2/modules/filestorage/filestorage.go#L19) seems to confirm this change corrects the import path. --- src/docs/markdown/extending-caddy.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/docs/markdown/extending-caddy.md b/src/docs/markdown/extending-caddy.md index c664bb8..a28a776 100644 --- a/src/docs/markdown/extending-caddy.md +++ b/src/docs/markdown/extending-caddy.md @@ -293,8 +293,8 @@ import ( "os" "github.com/caddyserver/caddy/v2" - "github.com/caddyserver/caddy/v2/config/caddyfile" - "github.com/caddyserver/caddy/v2/config/httpcaddyfile" + "github.com/caddyserver/caddy/v2/caddyconfig/caddyfile" + "github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile" "github.com/caddyserver/caddy/v2/modules/caddyhttp" ) @@ -372,4 +372,4 @@ var ( _ caddyhttp.MiddlewareHandler = (*Middleware)(nil) _ caddyfile.Unmarshaler = (*Middleware)(nil) ) -``` \ No newline at end of file +```