Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created September 17, 2019 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/652629da1c2b929671c8390e73b3bc70 to your computer and use it in GitHub Desktop.
Save IntegerMan/652629da1c2b929671c8390e73b3bc70 to your computer and use it in GitHub Desktop.
[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