33 lines
607 B
C#
33 lines
607 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Threading.Tasks;
|
|
using System.Web.Http;
|
|
|
|
namespace alexa.dev.excuses.Controllers
|
|
{
|
|
public class AlexaController : ApiController
|
|
{
|
|
[Route("")]
|
|
[HttpGet]
|
|
public IHttpActionResult root()
|
|
{
|
|
return this.Ok("Yo");
|
|
}
|
|
[Route("")]
|
|
[HttpPost]
|
|
public Task<HttpResponseMessage> Post()
|
|
{
|
|
return new ExcuseResponse().GetResponseAsync(this.Request);
|
|
}
|
|
[Route("excuse")]
|
|
[HttpGet]
|
|
public Task<string> GetExcuse()
|
|
{
|
|
return ExcuseResponse.GetExcuses();
|
|
}
|
|
}
|
|
}
|