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