mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Create Album endpoint
This commit is contained in:
parent
c3fca425cb
commit
967a6d1587
15 changed files with 388 additions and 85 deletions
15
src/schemas/album.ts
Normal file
15
src/schemas/album.ts
Normal 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), [])
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue