示例#1
0
        public async Task <ActionResult <RawJson> > GetBlockMetadata(
            [FromHeader] AuthHeaders headers,
            [Min(0)] int level,
            string section = null)
        {
            if (!Auth.TryAuthenticate(headers, out var error))
            {
                return(Unauthorized(error));
            }

            return(Ok(await Metadata.GetBlockMetadata(level, section)));
        }