Routing Path with ServiceStack

I am using AngularJS, I want to do the following routing on ServiceStack-serve-static-html

enter image description here

Pay attention to intercept any path in the screenshot.

Also note that I do not use ServiceStack for REST, I use it as a clean web server to serve static content, for example. HTML

Is it possible to do this on a ServiceStack?

+3
source share
1 answer

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 .

0
source

All Articles