Skip to content

Commit a00fc1f

Browse files
authored
Update README.md
1 parent 4bcc7e1 commit a00fc1f

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

README.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,10 @@ Out of the box easy to use, full DI support and fast.
3535
}
3636

3737
[HttpGet("{id:guid}")]
38-
public IActionResult Get(Guid id, int level = 0)
38+
public IActionResult Get(Guid id)
3939
{
4040
var content = _publishedContent.Content(id);
41-
var dictionary = new Dictionary<string, object>
42-
{
43-
{"addUrl", true}
44-
};
45-
46-
if (level <= 0)
47-
{
48-
return Ok(_contentResolver.Value.ResolveContent(content, dictionary));
49-
}
50-
51-
dictionary.Add("level", level);
52-
53-
return Ok(_contentResolver.Value.ResolveContent(content, dictionary));
41+
return Ok(_contentResolver.Value.ResolveContent(content));
5442
}
5543
}
5644
```

0 commit comments

Comments
 (0)