We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac6ac0e commit e7a6683Copy full SHA for e7a6683
graphite-demo/server.js
@@ -0,0 +1,30 @@
1
+const express = require('express');
2
+const app = express();
3
+const port = 3000;
4
+
5
+// Fake data for the activity feed
6
+const activityFeed = [
7
+ {
8
+ id: 1000,
9
+ title: 'New Photo Uploaded',
10
+ body: 'Alice uploaded a new photo to her album.'
11
+ },
12
13
+ id: 2000,
14
+ title: 'Comment on Post',
15
+ body: "Bob commented on Charlie's post."
16
17
18
+ id: 13,
19
+ title: 'Status Update',
20
+ body: 'Charlie updated their status: "Excited about the new project!"'
21
+ }
22
+];
23
24
+app.get('/feed', (req, res) => {
25
+ res.json(activityFeed);
26
+});
27
28
+app.listen(port, () => {
29
+ console.log(`Server running on port ${port}`);
30
0 commit comments