10 lines
268 B
JavaScript
10 lines
268 B
JavaScript
import express from 'express';
|
|
const app = express();
|
|
const port = process.env.PORT || 3001;
|
|
app.get('/', (req, res) => {
|
|
res.json({ message: 'Cable Creations API' });
|
|
});
|
|
app.listen(port, () => {
|
|
console.log(`Server running at http://localhost:${port}`);
|
|
});
|