berhir / AspNetCore.SpaYarp

An alternative approach to the new ASP.NET Core SPA templates in .NET 6. It uses YARP as proxy to forward requests to the SPA dev server.
MIT License
100 stars 12 forks source link

Second controller not proxied? #33

Closed awdorrin closed 2 months ago

awdorrin commented 2 months ago

I must be missing something, but only the weatherforecast controller works for me. Another controller I added UsersController is returning the index.html content.

awdorrin commented 2 months ago

Disregard - it has been a long day. I just realized I was trying to call like this.http.get<any>('/api/userscontroller').subscribe(... when I should have been doing: this.http.get<any>('/api/users').subscribe(...