示例#1
0
        public async Task <IActionResult> GetUser(SubsonicRequest request, string username)
        {
            var authResult = await AuthenticateUser(request).ConfigureAwait(false);

            if (authResult != null)
            {
                return(authResult);
            }
            var result = await SubsonicService.GetUser(request, username ?? request.u).ConfigureAwait(false);

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