mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
Added Path validator for SeriesModule
This commit is contained in:
parent
347bcb0cf4
commit
da9838f032
@ -29,6 +29,7 @@ public SeriesModule(ISeriesService seriesService, ISeriesStatisticsService serie
|
||||
|
||||
Get["/{slug}"] = o => GetSeries((string)o.slug.ToString());
|
||||
|
||||
SharedValidator.RuleFor(s => s.Path).NotEmpty();
|
||||
SharedValidator.RuleFor(s => s.QualityProfileId).ValidId();
|
||||
|
||||
PostValidator.RuleFor(s => s.Title).NotEmpty();
|
||||
|
Loading…
Reference in New Issue
Block a user