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