Skip to content

Instantly share code, notes, and snippets.

@justinyoo justinyoo/api-controller.cs Secret
Created Feb 13, 2017

Embed
What would you like to do?
Running Vue.js on ASP.NET Core Web Application
[Route("api")]
public class ApiController : Controller
{
[Route("hello")]
[HttpGet]
public IActionResult Hello()
{
var msg = new { Message = "Hello World" };
return this.Ok(msg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.