// // project : https://genhttp.org/ // using GenHTTP.Engine.Internal; using GenHTTP.Modules.Layouting; using GenHTTP.Modules.Practices; using GenHTTP.Modules.Webservices; namespace Sample { class Program { static async Task Main() { Console.WriteLine("genhttp started at http://192.168.1.22:8080/api/test/hello"); var project = Layout .Create() .AddService("api/test/hello"); return await Host.Create() .Handler(project) .Defaults() .RunAsync(); } } public class TestService { [ResourceMethod] public object Hello() { return new { message = "Hello World !" }; } } }