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