Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Add activity feed API
Browse files Browse the repository at this point in the history
  • Loading branch information
AvivYossef-starkware committed Jul 17, 2024
1 parent 952373d commit eadfc7b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .spr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
githubRepoOwner: starkware-libs
githubRepoName: blockifier
githubHost: github.com
githubRemote: origin
githubBranch: main-v0.13.2
requireChecks: true
requireApproval: true
mergeMethod: squash
mergeQueue: false
forceFetchTags: false
showPrTitlesInStack: false
branchPushIndividually: false
30 changes: 30 additions & 0 deletions graphite-demo/server.js
Original file line number Diff line number Diff line change
@@ -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}`);
});

0 comments on commit eadfc7b

Please sign in to comment.