You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the app registers all routes without prefixes, yielding in endpoints such as localhost:3000/users. For further customization, a configuration option should be added which sets a prefix to all endpoints.
Solution
Defined api.prefix to the configurations.
Proposed API
constfaux=require('faux-call');faux.config.set('api.prefix','/api');// e.g. localhost:3000/api/users
Description
Currently, the app registers all routes without prefixes, yielding in endpoints such as
localhost:3000/users
. For further customization, a configuration option should be added which sets a prefix to all endpoints.Solution
Defined
api.prefix
to the configurations.Proposed API
Release
The text was updated successfully, but these errors were encountered: