More work on the API. Primarely defining jsonapi types

This commit is contained in:
Melody Becker 2024-10-30 16:05:20 +01:00
parent 4f4d05a335
commit 0ed50aca60
13 changed files with 165 additions and 48 deletions

View file

@ -24,6 +24,10 @@ type MediaMetadata struct {
// Descriptive name for a media file
// Emote name for example or servername.filetype for a server's icon
Name string
// Alternative description of the media file's content
AltText string
// Whether the media is to be blurred by default
Blurred bool
}
func (s *Storage) NewMediaMetadata(location, mediaType, name string) (*MediaMetadata, error) {