Searches dumps, users and playlists at once, for the client's Search page.
Only the dumps are paged. Private dumps and playlists are found only by
their owner.
GET /api/search?q=&page=&limit=&category=&playlistCategory=— optional sign-in. Answers a page of the matching dumps with their total, and up to 20 matching users and playlists. A blankqfinds nothing.categorykeeps the dumps in that dump category,playlistCategorythe playlists in that playlist category; a slug that names none finds nothing.
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/search.ts";