Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created February 13, 2017 12:14
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 justinyoo/a8d49594556e0afd53da7eec10488d86 to your computer and use it in GitHub Desktop.
Save justinyoo/a8d49594556e0afd53da7eec10488d86 to your computer and use it in GitHub Desktop.
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