chore: remove Slides page and Salla console output

- Remove Slides route, import, and mobile nav link from App.tsx
- Remove Salla route mounting and console output from server

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
fahed
2026-03-26 17:16:40 +03:00
parent 18821fd560
commit b4f4104e3e
2 changed files with 3 additions and 24 deletions

View File

@@ -1,7 +1,6 @@
import express from 'express';
import cors from 'cors';
import { server, salla, erp } from './config';
import sallaRoutes from './routes/salla';
import { server, erp } from './config';
import erpRoutes from './routes/erp';
const app = express();
@@ -9,25 +8,15 @@ app.use(cors());
app.use(express.json());
// Mount routes
app.use(sallaRoutes);
app.use('/api/erp', erpRoutes);
app.listen(server.port, () => {
console.log(`\nServer running on http://localhost:${server.port}`);
console.log('\nERP API:');
if (erp.apiUrl && erp.username) {
console.log(` GET /api/erp/sales?startDate=...&endDate=...`);
console.log(` GET /api/erp/status`);
console.log(' GET /api/erp/sales?startDate=...&endDate=...');
console.log(' GET /api/erp/status');
} else {
console.log(' WARNING: ERP_API_URL / ERP_USERNAME not set in .env');
}
console.log('\nSalla:');
if (salla.clientId && salla.clientSecret) {
console.log(' GET /auth/login, /auth/callback, /auth/status');
console.log(' GET /api/store, /api/orders, /api/products, /api/customers');
} else {
console.log(' WARNING: SALLA_CLIENT_ID / SALLA_CLIENT_SECRET not set in .env');
}
});