mirror of
https://github.com/kristoferssolo/traxor.git
synced 2025-10-21 20:10:35 +00:00
30 lines
612 B
JavaScript
30 lines
612 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
const port = 3000;
|
|
|
|
// Fake data for the activity feed
|
|
const activityFeed = [
|
|
{
|
|
id: 1000,
|
|
title: 'New Photo Uploaded',
|
|
body: 'Alice uploaded a new photo to her album.'
|
|
},
|
|
{
|
|
id: 2000,
|
|
title: 'Comment on Post',
|
|
body: "Bob commented on Charlie's post."
|
|
},
|
|
{
|
|
id: 13,
|
|
title: 'Status Update',
|
|
body: 'Charlie updated their status: "Excited about the new project!"'
|
|
}
|
|
];
|
|
|
|
app.get('/feed', (req, res) => {
|
|
res.json(activityFeed);
|
|
});
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Server running on port ${port}`);
|
|
}); |