Dotnet
Authentication and Authorization - Registration Part 1

Exercise - Create Controllers

PRO

I finished! On to the next chapter

Outline

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;
        }
    }
}