C
C#•5mo ago
Camster

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
No description
No description
5 Replies
palapapa
palapapa•5mo ago
But you didn't add the /api/ prefix in your example? Just a guess
Camster
Camster•5mo ago
I got unexpected company , I’ll be back soon 😅
Camster
Camster•5mo ago
You mean like this?
No description
palapapa
palapapa•5mo ago
Thats' a suffix
Camster
Camster•5mo ago
I'm not sure I understand. Wouldn't it go at the end, since I have to navigate to the site first?