Deploy Blazor Server and API to IIS in same website
I want to deploy a blazor server app together with a web API so that they use the same website. This is an internal website. Keeping them together will save me from having to procure separate IP addresses and DNS host names. Is it possible? All the API routes have "/api/" prefixes. I tried created the website first and adding the API as a sub-application. The Blazor app works, but it just tells me the website doesn't exist when I try to navigate to the API
5 Replies
But you didn't add the
/api/
prefix in your example? Just a guessI got unexpected company , I’ll be back soon 😅
You mean like this?
Thats' a suffix
I'm not sure I understand. Wouldn't it go at the end, since I have to navigate to the site first?