BotSharp/BotSharp.RestApi/Rasa/StatusController.cs
2018-08-14 09:23:15 -05:00

28 lines
664 B
C#

using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.RestApi.Rasa
{
#if MODE_RASA
[Route("[controller]")]
public class StatusController : ControllerBase
{
[HttpGet]
public ActionResult<RasaVersionModel> Get()
{
var status = new RasaStatusModel();
status.AvailableProjects = JObject.FromObject(new RasaProjectModel
{
Status = "ready",
AvailableModels = new List<string> { "<model_XXXXXX>" }
});
return Ok(status);
}
}
#endif
}