Purpose of MapSpaFallbackRoute #725

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

Originally created by @im1dermike on 5/24/2017

What is the purpose of the following code which is automatically loaded to the Startup class with this project:

routes.MapSpaFallbackRoute(
    name: "spa-fallback",
    defaults: new { controller = "Home", action = "Index" });

This results in a 200 being thrown when a non-existent API endpoint is hit instead of a 404.

*Originally created by @im1dermike on 5/24/2017* What is the purpose of the following code which is automatically loaded to the `Startup` class with this project: routes.MapSpaFallbackRoute( name: "spa-fallback", defaults: new { controller = "Home", action = "Index" }); This results in a 200 being thrown when a non-existent API endpoint is hit instead of a 404.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#725
No description provided.