How to use Swagger and return 404 for unknown API urls #579

Closed
opened 2025-08-09 17:16:50 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ysazak on 7/15/2017

How can I use swagger with this template? When I implement swagger, the swagger page is redirected to home page due to SpaFallbackRoute.

Also, when unknown api url (for example; api/xyz) is called, it redirects to home page. I would like to return 404

Thanks for your help

*Originally created by @ysazak on 7/15/2017* How can I use swagger with this template? When I implement swagger, the swagger page is redirected to home page due to SpaFallbackRoute. Also, when unknown api url (for example; api/xyz) is called, it redirects to home page. I would like to return 404 Thanks for your help
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#579
No description provided.