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.
9 lines
179 B
C#
9 lines
179 B
C#
namespace Musify.Api.Validators.Albums;
|
|
|
|
public static class AlbumReleaseYear
|
|
{
|
|
public const int Earliest = 1877;
|
|
|
|
public static int Latest => DateTime.UtcNow.Year + 1;
|
|
}
|