diff options
| author | Shoubhit Dash <[email protected]> | 2025-10-23 09:44:28 +0530 |
|---|---|---|
| committer | Shoubhit Dash <[email protected]> | 2025-10-23 09:44:28 +0530 |
| commit | da281eeac9ec35e753f8a3413f0fc099f85140f6 (patch) | |
| tree | 258dfa70d2a301bf56f5565aac011f0d403d9d32 | |
| parent | fix: t3chat prompt injection (#505) (diff) | |
| download | supermemory-10-23-demo_7a011fe7_add_acitivity_feed_api.tar.xz supermemory-10-23-demo_7a011fe7_add_acitivity_feed_api.zip | |
add acitivity feed api10-23-demo_7a011fe7_add_acitivity_feed_api
| -rw-r--r-- | graphite-demo/server.js | 30 |
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 |