diff --git a/src/BackendTutorial/Controllers/V1/TutorialController.cs b/src/BackendTutorial/Controllers/V1/TutorialController.cs new file mode 100644 index 0000000..b8119c0 --- /dev/null +++ b/src/BackendTutorial/Controllers/V1/TutorialController.cs @@ -0,0 +1,17 @@ +using Asp.Versioning; +using Infrastructure; +using Microsoft.AspNetCore.Mvc; + +namespace BackendTutorial.Controllers.V1; + +[ApiVersion("1.0")] +[Route("tutorial/{version:apiVersion}")] +public class TutorialController(ILogger logger) : DefaultControllerBase +{ + [HttpGet("hello")] + public async Task> HelloAsync() + { + logger.LogInformation("hello world"); + return await Task.Run(() => Succeed("hello world")); + } +} \ No newline at end of file