From 066285d3a3b3fc563f182588f10cb20c37723876 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Mon, 25 Jul 2022 17:40:19 +0000 Subject: [PATCH] Move robots.txt and favicon from config/ to new embed/ dir --- {config => embed}/favicon.png | Bin {config => embed}/favicon.svg | 0 {config => embed}/robots.txt | 0 src/Vervis/Handler/Common.hs | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename {config => embed}/favicon.png (100%) rename {config => embed}/favicon.svg (100%) rename {config => embed}/robots.txt (100%) diff --git a/config/favicon.png b/embed/favicon.png similarity index 100% rename from config/favicon.png rename to embed/favicon.png diff --git a/config/favicon.svg b/embed/favicon.svg similarity index 100% rename from config/favicon.svg rename to embed/favicon.svg diff --git a/config/robots.txt b/embed/robots.txt similarity index 100% rename from config/robots.txt rename to embed/robots.txt diff --git a/src/Vervis/Handler/Common.hs b/src/Vervis/Handler/Common.hs index 23074fc..72ca32b 100644 --- a/src/Vervis/Handler/Common.hs +++ b/src/Vervis/Handler/Common.hs @@ -33,16 +33,16 @@ getFaviconSvgR :: Handler TypedContent getFaviconSvgR = return $ TypedContent "image/svg+xml" $ - toContent $(embedFile "config/favicon.svg") + toContent $(embedFile "embed/favicon.svg") getFaviconPngR :: Handler TypedContent getFaviconPngR = return $ TypedContent "image/png" $ - toContent $(embedFile "config/favicon.png") + toContent $(embedFile "embed/favicon.png") getRobotsR :: Handler TypedContent getRobotsR = return $ TypedContent typePlain $ - toContent $(embedFile "config/robots.txt") + toContent $(embedFile "embed/robots.txt")