Throws a 400 unless slug is a valid slug, lowercase words of letters and
digits joined by hyphens, at most max long. slug-service checks a dump's
or a playlist's with it, and category-service a category's, with that
kind's own limit.
Parameters
slug: string
optional
max: number = SLUG_MAX
Return Type
void
Usage
import { validateSlug } from "api/lib/slugify.ts";