From 9470b10bdd9e1cc166a4b9ddfbdf09d1c4818ae8 Mon Sep 17 00:00:00 2001 From: unwox Date: Mon, 8 Sep 2025 15:35:44 +0600 Subject: update according to changes in luna --- bin/fetch.fnl | 2 -- bin/serve.fnl | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/fetch.fnl b/bin/fetch.fnl index bc7a827..a28af42 100644 --- a/bin/fetch.fnl +++ b/bin/fetch.fnl @@ -2,8 +2,6 @@ (tset package :path (.. package.path ";./vendor/lpeglj/?.lua")) -(local fennel (require :vendor.fennel)) - (local array (require :lib.array)) (local cache (require :lib.cache)) (local {: must} (require :lib.utils)) diff --git a/bin/serve.fnl b/bin/serve.fnl index 2959e57..036e43d 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -4,7 +4,6 @@ (local array (require :lib.array)) (local cache (require :lib.cache)) -(local fennel (require :vendor.fennel)) (local fs (require :lib.fs)) (local html (require :vendor.html)) (local libhtml (require :lib.html)) @@ -649,7 +648,7 @@ (must (luna.router.route "GET /" root-handler)) (must (luna.router.route "GET /robots.txt" robots-handler)) -(must (luna.router.static "GET /static/" "static/")) +(must (luna.router.static "GET /static/" "static/" "public, max-age=3600")) (must (luna.router.route "GET /track" track-handler)) (when luna.debug -- cgit v1.2.3