aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShoubhit Dash <[email protected]>2025-10-23 09:44:28 +0530
committerShoubhit Dash <[email protected]>2025-10-23 09:44:28 +0530
commitda281eeac9ec35e753f8a3413f0fc099f85140f6 (patch)
tree258dfa70d2a301bf56f5565aac011f0d403d9d32
parentfix: t3chat prompt injection (#505) (diff)
downloadsupermemory-10-23-demo_7a011fe7_add_acitivity_feed_api.tar.xz
supermemory-10-23-demo_7a011fe7_add_acitivity_feed_api.zip
-rw-r--r--graphite-demo/server.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/graphite-demo/server.js b/graphite-demo/server.js
new file mode 100644
index 00000000..54925ed5
--- /dev/null
+++ b/graphite-demo/server.js
@@ -0,0 +1,30 @@
+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}`);
+}); \ No newline at end of file