From 9cf06401f04c3f0dc1daf675af465c89bab5ac50 Mon Sep 17 00:00:00 2001 From: dereklseitz Date: Thu, 21 Aug 2025 16:25:18 -0500 Subject: [PATCH] fix: add /api prefix to contactRoutes call --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 45bab46..4235575 100644 --- a/server.js +++ b/server.js @@ -44,7 +44,7 @@ const securityMw = require('./middleware/securityMw'); const contactRoutes = require('./routes/contactRoutes')(contactController, securityMw); // Use contactRoutes to connect the modular router to the main app -app.use(contactRoutes); +app.use('/api', contactRoutes); // Start the server app.listen(port, () => {