From 90a91c332de6eaa0dfdcbd7ecb9a046060f405f8 Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Mon, 13 Nov 2023 07:21:45 +0600 Subject: [PATCH] :pencil2: Updated doc comment about static serving --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 998a2ec..7f39afa 100644 --- a/main.go +++ b/main.go @@ -102,9 +102,9 @@ func NewApp(ctx context.Context, config *domain.Config) (*App, error) { } // TODO(toby3d): use exists static use case or split that on static and resource modules? - // INFO(toby3d): any static file is public by design, so it's safe to search it first before - // deep down to any page or it's resource which might be secured by middleware or something - // else. + // INFO(toby3d): any static file is public and unprotected by design, so it's safe to search it + // first before deep down to any page or it's resource which might be secured by middleware or + // something else. static, err := statics.Get(r.Context(), strings.TrimPrefix(r.URL.Path, "/")) if err == nil { http.ServeContent(w, r, static.Name(), domain.ResourceModTime(static), static)