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)); }; }
public static void AddRaidPath(string path) { ParametersConfig.Write("antddbraid", path); }