Create Album endpoint

This commit is contained in:
Jorge Vargas 2025-03-08 22:24:22 -06:00
parent c3fca425cb
commit 967a6d1587
15 changed files with 388 additions and 85 deletions

15
src/schemas/album.ts Normal file
View file

@ -0,0 +1,15 @@
import * as s from 'superstruct'
const LinkInput = s.object({
provider: s.string(),
custom: s.optional(s.string()),
url: s.optional(s.string()),
url2: s.optional(s.string()),
directUrl: s.optional(s.string())
})
export const DownloadInput = s.object({
title: s.string(),
small: s.defaulted(s.boolean(), false),
links: s.defaulted(s.array(LinkInput), [])
})