Restaure routes/search.js pour compat /search.php (HTML format PHP)
This commit is contained in:
@@ -11,6 +11,7 @@ import { getPool } from './lib/searchEngine.js';
|
||||
import adminRoutes from './routes/admin.js';
|
||||
import apiRoutes from './routes/api.js';
|
||||
import healthRoutes from './routes/health.js';
|
||||
import searchRoutes from './routes/search.js';
|
||||
|
||||
const fastify = Fastify({ logger: true, trustProxy: true });
|
||||
|
||||
@@ -57,6 +58,7 @@ await fastify.register(fastifyStatic, {
|
||||
|
||||
await fastify.register(adminRoutes);
|
||||
await fastify.register(apiRoutes);
|
||||
await fastify.register(searchRoutes);
|
||||
await fastify.register(healthRoutes);
|
||||
|
||||
// Serve raw project files only under /admin/files (still session-protected
|
||||
|
||||
Reference in New Issue
Block a user