formatting

This commit is contained in:
hak8or 2017-09-03 04:02:43 -04:00
parent 57b057516c
commit 850046a3d5
1 changed files with 2 additions and 6 deletions

View File

@ -11,11 +11,7 @@ namespace YTManager.Controllers {
[Route("api/Channels")]
public class ChannelsController : Controller {
private readonly MediaDB _context;
public ChannelsController(MediaDB context)
{
_context = context;
}
public ChannelsController(MediaDB context) => _context = context;
// GET api/Channels
[HttpGet]
@ -44,7 +40,7 @@ namespace YTManager.Controllers {
return Ok(_context.Entry(Chan).Collection(c => c.Videos).LoadAsync());
}
// POST api/values
// POST api/Channels
[HttpPost]
public IActionResult Post([FromBody]JObject value) {
// Get the channel out of our json body.