-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
Description
Steps to reproduce
- Set up a model where the
http.pathproperty is set to/. - Open Loopback Explorer (the Swagger UI).
- See that the page fails to load.
Current Behavior
The addRoute subfunction in the RestAdapter.allRoutes method has a bug where it doesn't account for the case where the path of a route is just /, so when the trailing slash removal code runs, it makes the path empty instead of keeping it at /.
Expected Behavior
If the path is /, the trailing slash removal code should leave it unchanged.
Additional information
linux x64 12.22.12
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]