forked from SciSharp/BotSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigController.cs
More file actions
29 lines (27 loc) · 801 Bytes
/
ConfigController.cs
File metadata and controls
29 lines (27 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
}
}
}