Custom REST endpoints

0
0

Hi!

We have a Wisej.NET 4 app (.NET 8, in-process on IIS/Azure App Service). We need custom REST endpoints under /api alongside the Wisej UI. We use minimal hosting (WebApplication.CreateBuilder in a Startup.Main, not UseStartup<Startup>). We register endpoints with app.MapGet/MapPost, and also tried the template order app.UseWisej(); app.UseRouting(); app.UseEndpoints(...). In every case our custom routes (e.g. GET /data, /api/health) return an empty HTTP 200 — Wisej handles them and never passes them to our endpoints, while the UI at / works fine. What is the exact required setup (services registration, hosting model, middleware order) so custom /api endpoints reach ASP.NET Core instead of being swallowed by Wisej? Is classic UseStartup<Startup> hosting required, and is there a Wisej service registration we’re missing?

 

Thanks!

Gerry

 

  • You must to post comments
0
0

Middlewares (UseAbc() are middlewares) are processed in the order they are registered. Place your endpoints processing before wisej.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.