function getPlaylistByPath
getPlaylistByPath(
userId: string,
slug: string,
viewerId?: string | null
): Playlist

Returns the playlist of userId's whose slug is or was slug, private or not, or throws a 404, as getPlaylistById does, counting its dumps for viewerId likewise. Reached by a former slug, it comes with its current one.

Parameters

userId: string
slug: string
optional
viewerId: string | null = null

Return Type

Usage

import { getPlaylistByPath } from "api/services/playlist-service.ts";