aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/BaseApiService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/BaseApiService.cs')
-rw-r--r--MediaBrowser.Api/BaseApiService.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs
index e644f1f31..0c95f6112 100644
--- a/MediaBrowser.Api/BaseApiService.cs
+++ b/MediaBrowser.Api/BaseApiService.cs
@@ -76,6 +76,16 @@ namespace MediaBrowser.Api
{
return ResultFactory.GetCachedResult(RequestContext, cacheKey, lastDateModified, cacheDuration, factoryFn, contentType);
}
+
+ /// <summary>
+ /// To the static file result.
+ /// </summary>
+ /// <param name="path">The path.</param>
+ /// <returns>System.Object.</returns>
+ protected object ToStaticFileResult(string path)
+ {
+ return ResultFactory.GetStaticFileResult(RequestContext, path);
+ }
}
/// <summary>