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:
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user