Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/api/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,28 @@ app.get("/announcements", (c) => {
return c.json([]);
});

app.get("/trends/tags", (c) => {
return c.json([]);
});

app.get("/trends/statuses", (c) => {
return c.json([]);
});

app.get("/trends/links", (c) => {
return c.json([]);
});

// Mastodon clients also request /trends without a subpath,
// which is equivalent to /trends/tags:
app.get("/trends", (c) => {
return c.json([]);
});

app.get("/suggestions", (c) => {
return c.json([]);
});

app.get(
"/favourites",
tokenRequired,
Expand Down
4 changes: 4 additions & 0 deletions src/api/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ app.route("/notifications", notificationsRoutes);

app.post("/media", tokenRequired, scopeRequired(["write:media"]), postMedia);

app.get("/suggestions", (c) => {
return c.json([]);
});
Comment on lines +49 to +51
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a small API test for this stub endpoint (e.g., assert GET /api/v2/suggestions returns 200 with an empty JSON array, and appropriate headers) to prevent regressions and to match the existing test coverage around other /api/v2 routes.

Copilot uses AI. Check for mistakes.

app.get(
"/search",
tokenRequired,
Expand Down
Loading