This is node.js code, you did not specify C # ServiceStack AppHost code here.
ServiceStack by default supports displaying static content via HTTP, although you must accept it in / to serve static content from the root directory of your application.
You did not mention whether you use ServiceStack hosting through the ASP.NET host or as standalone HttpListener hosting. If this is the last you need, in VS.NET install your files that you want to mark Build Action your static files as Content and set its Copy to Output Directory as Copy if Newer .
mythz
source share