Serves what the caller follows, and follows or stops following for them.
The dumps of what they follow, the index's "follow" tab, are
GET /api/dumps?follow='s (routes/dumps.ts), and what another user
follows is routes/users.ts's.
GET /api/me/follow— signed in. Answers the ids of the users and playlists they follow.PUT /api/me/follow/users/:userId— signed in. Follows a user.DELETE /api/me/follow/users/:userId— signed in. Stops following a user.PUT /api/me/follow/playlists/:playlistId— signed in. Follows a public playlist.DELETE /api/me/follow/playlists/:playlistId— signed in. Stops following a playlist.
v
default: Router
Mounted by api/main.ts behind the error, Open Graph and CORS middleware.
An APIException thrown by a handler becomes the JSON error response there.
Usage
import * as mod from "api/routes/follows.ts";