From cc3b64e328b6b5c4290f82081257da6ba5f3dff9 Mon Sep 17 00:00:00 2001
From: alex <alex@alexloehr.net>
Date: Thu, 12 Jun 2025 15:20:54 +0000
Subject: [PATCH] fixing search

---
 app.js |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/app.js b/app.js
index 92b42ee..7c2142b 100644
--- a/app.js
+++ b/app.js
@@ -174,7 +174,7 @@
    })
 
 
-/////// STATIC ////////////////////////////////////////////////////////////////
+/////// STATIC / SPA ////////////////////////////////////////////////////////////////
 
 
 fastify.register(require('@fastify/static'), {
@@ -183,13 +183,6 @@
 
    // constraints: { host: 'example.com' } // optional: default {}
 })
-
-
-// fastify.get('*', function (req, reply) {
-//    console.log("!!!!!!!!! send index")
-//    // index.html should never be cached
-//    reply.sendFile('dist/index.html', {maxAge: 0, immutable: false})
-// })
 
 const indexFile = fs.readFileSync(path.join(__dirname, "vue/dist", 'index.html'), 'utf8')
 fastify.setNotFoundHandler(function (req, res) {

--
Gitblit v1.8.0