Exemple #1
0
        public async Task <IActionResult> GetIndexes(SubsonicRequest request, long?ifModifiedSince = null)
        {
            var authResult = await AuthenticateUser(request).ConfigureAwait(false);

            if (authResult != null)
            {
                return(authResult);
            }
            var result = await SubsonicService.GetIndexes(request, SubsonicUser, ifModifiedSince).ConfigureAwait(false);

            return(BuildResponse(request, result, "indexes"));
        }