using Grapevine; namespace server; class VociServer { static void Main(string[] args) { // Start the standalone REST server. using (var server = RestServerBuilder.UseDefaults().Build()) { // The server will scan the entire assembly for RestResource annotations // and add them to the served prefixes. // In addition, we want to serve static content (HTML, CSS, JS that is not modified // but transferred to the client as is from the "website" folder. string staticPath = Path.Combine(Directory.GetCurrentDirectory(), "website"); server.ContentFolders.Add(staticPath); server.UseContentFolders(); // Start the server. server.Start(); Console.WriteLine("Press enter to stop the server"); Console.ReadLine(); } } }