Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created August 5, 2018 16:00
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 gdyrrahitis/d843a40189a3f0b0717f2530edc48bb7 to your computer and use it in GitHub Desktop.
Save gdyrrahitis/d843a40189a3f0b0717f2530edc48bb7 to your computer and use it in GitHub Desktop.
[Route("api/[controller]")]
[ApiController]
public class ValuesController : ControllerBase
{
[HttpGet]
[Authorize]
public ActionResult<IEnumerable<string>> Get() => new [] { "value1", "value2" };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment