public TestModule() : base("/test") { Get["/"] = x => { return(Response.AsText("Hello World!")); }; Get["/page"] = x => { return(View["page-test"]); }; Get["/raid"] = x => { string v = "antdbdas"; ParametersConfig.Write(v, "uno"); Console.WriteLine(ParametersConfig.Read(v)); ParametersConfig.Write(v, "due"); Console.WriteLine(ParametersConfig.Read(v)); ParametersConfig.Write(v, "tre"); Console.WriteLine(ParametersConfig.Read(v)); return(Response.AsJson(true)); }; }
private static string GetDatabaseRaidPaths() { var files = JsonConvert.DeserializeObject <string[]>(ParametersConfig.Read("antddbraid")); return(string.Join(", ", files).ToString()); }