Is it possible to customize the RPC endpoint path? #1409
Answered
by
timostamm
Gumichocopengin8
asked this question in
Q&A
-
I use # buf.gen.yaml
version: v2
plugins:
- local: protoc-gen-es
out: src/proto_gen
include_imports: true
opt: target=ts |
Beta Was this translation helpful? Give feedback.
Answered by
timostamm
Jan 29, 2025
Replies: 1 comment 1 reply
-
You can modify the request URL with an interceptor. For example: const transport = createConnectTransport({
baseUrl: "/",
interceptors: [
(next) => (req) => {
return next({
...req,
url: req.url.replace("packageName.ServiceName/", ""),
});
},
],
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Gumichocopengin8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can modify the request URL with an interceptor. For example: