BotSharp/BotSharp.Platform.Rasa/Controllers/ConfigController.cs

30 lines
801 B
C#
Raw Normal View History

2018-11-19 15:20:59 +00:00
using BotSharp.Platform.Rasa.Models;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.Platform.Rasa.Controllers
{
[Route("[controller]")]
public class ConfigController : ControllerBase
{
[HttpGet]
public ActionResult<RasaVersionModel> Get()
{
var status = new RasaStatusModel
{
AvailableProjects = JObject.FromObject(new RasaProjectModel
{
Status = "ready",
AvailableModels = new List<string> { "model_XXXXXX" },
LoadedModels = new List<string> { "model_XXXXXX" }
})
};
return Ok(status);
}
}
}