Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
3193e0fc
Commit
3193e0fc
authored
Apr 16, 2025
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add activity feed API
parent
907777d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
server.js
turbopack/crates/turbopack-tests/graphite-demo/server.js
+30
-0
No files found.
turbopack/crates/turbopack-tests/graphite-demo/server.js
0 → 100644
View file @
3193e0fc
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment