Skip to content

Instantly share code, notes, and snippets.

@wshaddix
Last active November 13, 2015 13:21
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 wshaddix/06ebb0316040db34bd17 to your computer and use it in GitHub Desktop.
Save wshaddix/06ebb0316040db34bd17 to your computer and use it in GitHub Desktop.
Asp.Net Web API Controller - HEAD
using Microsoft.AspNet.Mvc;
namespace kanbanflow_slack.Controllers
{
[Route("api/webhooks")]
public class WebHooksController : Controller
{
// HEAD: api/webhooks
[HttpHead]
public void Head()
{
// nothing to do, we just need to return a 200 status code
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment