icons still

This commit is contained in:
Jake Kasper
2025-09-02 08:58:46 -05:00
parent d90403c8f9
commit 90af8fab02
2 changed files with 29 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ const applicationRoutes = require('./routes/applications');
const spreaderSettingsRoutes = require('./routes/spreaderSettings');
const productSpreaderSettingsRoutes = require('./routes/productSpreaderSettings');
const weatherRoutes = require('./routes/weather');
const weatherPublicRoutes = require('./routes/weatherPublic');
const adminRoutes = require('./routes/admin');
const { errorHandler } = require('./middleware/errorHandler');
@@ -90,6 +91,8 @@ app.get('/health', (req, res) => {
});
// Routes
// Public icon proxy must be mounted before protected weather routes
app.use('/api/weather/icon', weatherPublicRoutes);
app.use('/api/auth', authLimiter, authRoutes);
app.use('/api/users', authenticateToken, userRoutes);
app.use('/api/properties', authenticateToken, propertyRoutes);