redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

[Feature Request] [RTK Query] Prefix Inject Endpoints with URL (either versioning or shared base)

Open MylesWardell opened this issue 1 year ago • 2 comments

Feature Request

Looking for a feature that will prefix the injectEndpoint urls with added context similar to how baseUrl prefixes every URL. The example would look like this

Example

image

This could have multiple purpose but we have a microservice architecture so the code split folders commonly have shared prefixes such as user or notification but most importantly versioning like v1 so we can update an entire microservice versioning without copy pasting each individual hook.

MylesWardell avatar Aug 08 '23 04:08 MylesWardell