Skip to content

Commit f20fda8

Browse files
committed
added fixes
1 parent 439accd commit f20fda8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client/src/services/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const API = {
1010
}
1111
return await response.json();
1212
} catch (error) {
13-
console.error(`API Error: ${endpoint}`, error);
13+
console.error('API Error:', endpoint, error);
1414
throw error;
1515
}
1616
},

server/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ app.use(express.json());
3333

3434
// Request logging middleware
3535
app.use((req, res, next) => {
36-
console.log(`${new Date().toISOString()} - ${req.method} ${req.url}`);
36+
console.log(new Date().toISOString(), '-', req.method, req.url);
3737
next();
3838
});
3939

@@ -618,7 +618,7 @@ app.post('/api/users/bulk', (req, res) => {
618618
});
619619

620620
app.listen(PORT, () => {
621-
console.log(`🚀 Server is running on port ${PORT}`);
621+
console.log('🚀 Server is running on port', PORT);
622622
console.log(`📱 Frontend should run on http://localhost:3000`);
623-
console.log(`🔗 Backend API available at http://localhost:${PORT}/api`);
623+
console.log('🔗 Backend API available at http://localhost:' + PORT + '/api');
624624
});

0 commit comments

Comments
 (0)