Dotnet
Authentication and Authorization - Registration Part 1

Exercise - Create Controllers

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

I finished! On to the next chapter

Exercise: Creating Controller

Create the following Controllers
  • Articles
  • Profiles
  • Tags
  • User (notice it's singular)

Here's the code from the previous video as a reminder:

using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace Conduit.Api.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class UsersController : ControllerBase
    {
        private ILogger<UsersController> Logger;

        public UsersController(ILogger<UsersController> logger)
        {
            Logger = logger;
        }
    }
}