Created
September 17, 2019 03:44
-
-
Save IntegerMan/652629da1c2b929671c8390e73b3bc70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Route("api/[controller]")] | |
[ApiController] | |
public class ValuesController : ControllerBase | |
{ | |
// GET api/values | |
[HttpGet] | |
public ActionResult<IEnumerable<string>> Get() | |
{ | |
return new string[] { "value1", "value2" }; | |
} | |
// Other code omitted... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment