Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
deMD authored Oct 18, 2021
1 parent 4bcc7e1 commit a00fc1f
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,10 @@ Out of the box easy to use, full DI support and fast.
}

[HttpGet("{id:guid}")]
public IActionResult Get(Guid id, int level = 0)
public IActionResult Get(Guid id)
{
var content = _publishedContent.Content(id);
var dictionary = new Dictionary<string, object>
{
{"addUrl", true}
};

if (level <= 0)
{
return Ok(_contentResolver.Value.ResolveContent(content, dictionary));
}

dictionary.Add("level", level);

return Ok(_contentResolver.Value.ResolveContent(content, dictionary));
return Ok(_contentResolver.Value.ResolveContent(content));
}
}
```
Expand Down

0 comments on commit a00fc1f

Please sign in to comment.