You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to create a project with multiple static folders, is there this resource in the library?
var server = new EmbedIO.WebServer(o => o
.WithUrlPrefix(url)
.WithMode(HttpListenerMode.EmbedIO))
.WithLocalSessionManager()
.WithWebApi("/api", m => m
.WithController(() => new ApiController())
.WithController(() => new AnalyticsController()))
.WithStaticFolder("/", HtmlRootPath, true, m => m
.WithContentCaching(UseFileCache))
.WithStaticFolder("/", HtmlRootPath + "\\analytics", true, m => m
.WithContentCaching(UseFileCache))
.WithModule(new ActionModule("/", HttpVerbs.Any, ctx => ctx.SendDataAsync(new { Message = "Error" })));
I'm trying to implement this code but without success.
The text was updated successfully, but these errors were encountered:
I need to create a project with multiple static folders, is there this resource in the library?
I'm trying to implement this code but without success.
The text was updated successfully, but these errors were encountered: