Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/8fc93c76283b8a8cc1a5b18e7c294ba3b302ba33
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
18 additions and
10 deletions
@ -29,6 +29,12 @@ namespace NzbDrone.Api.Calendar
_seriesRepository = seriesRepository ;
GetResourceAll = GetCalendar ;
GetResourceById = GetEpisode ;
}
private EpisodeResource GetEpisode ( int id )
{
return _episodeService . GetEpisode ( id ) . InjectTo < EpisodeResource > ( ) ;
}
private List < EpisodeResource > GetCalendar ( )
@ -37,12 +37,24 @@ namespace NzbDrone.Api.REST
protected RestModule ( string modulePath )
: base ( modulePath )
{
ValidateModule ( ) ;
PostValidator = new ResourceValidator < TResource > ( ) ;
PutValidator = new ResourceValidator < TResource > ( ) ;
SharedValidator = new ResourceValidator < TResource > ( ) ;
}
private void ValidateModule ( )
{
if ( GetResourceById ! = null ) return ;
if ( CreateResource ! = null | | UpdateResource ! = null )
{
throw new InvalidOperationException ( "GetResourceById route must be defined before defining Create/Update routes." ) ;
}
}
protected Action < int > DeleteResource
{
private get { return _deleteResource ; }
@ -137,7 +149,6 @@ namespace NzbDrone.Api.REST
private get { return _createResource ; }
set
{
EnsureGetByIdRoute ( ) ;
_createResource = value ;
Post [ ROOT_ROUTE ] = options = >
{
@ -148,15 +159,6 @@ namespace NzbDrone.Api.REST
}
}
private void EnsureGetByIdRoute ( )
{
if ( GetResourceById = = null )
{
throw new InvalidOperationException (
"GetResourceById route must be defined before defining Create/Update routes." ) ;
}
}
protected Action < TResource > UpdateResource
{
private get { return _updateResource ; }