formatting
This commit is contained in:
parent
57b057516c
commit
850046a3d5
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user