feat(api): expose the album endpoints
Eight routes under /albums covering the listing, the detail, the tracklist and the owner-only writes, wired to the same validation filter and ErrorOr mapping the playlists use.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace Musify.Api.Validators.Albums;
|
||||
|
||||
public static class AlbumReleaseYear
|
||||
{
|
||||
public const int Earliest = 1877;
|
||||
|
||||
public static int Latest => DateTime.UtcNow.Year + 1;
|
||||
}
|
||||
Reference in New Issue
Block a user