/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * SPDX-License-Identifier: MIT-0 */ using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace todo_app.Controllers { [ApiController] [Route("api/[controller]")] public class ValuesController : ControllerBase { private readonly ILogger _logger; public ValuesController(ILogger logger) { _logger = logger; } [HttpGet] public ActionResult> Get() { //Console.WriteLine("Values Controller!"); _logger.LogInformation("Values Controller..."); return new string[] { "value1", "value2" }; } } }