api/schema: don't decode the url

this is from the dinosaur era of cobalt and hasn't been used since we moved to POST requests
This commit is contained in:
wukko 2024-08-30 14:09:18 +06:00
parent 1fe419784d
commit 329b068038
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -6,7 +6,7 @@ import { verifyLanguageCode } from "../misc/utils.js";
export const apiSchema = z.object({
url: z.string()
.min(1)
.transform((url) => normalizeURL(decodeURIComponent(url))),
.transform(url => normalizeURL(url)),
audioBitrate: z.enum(
["320", "256", "128", "96", "64", "8"]