Where is the handler of /routing/v1/providers/{cid}
Shawn-Huang-Tron opened this issue · comments
Shawn-Huang-Tron commented
I can't find the handler of /routing/v1/providers in code, but if i click this i can see the result output: https://cid.contact/routing/v1/providers/bafybeigvgzoolc3drupxhlevdp2ugqcrbcsqfmcek2zxiw5wctk3xjpjwy
This is handler in this repo?
Andrew Gillis commented
The handler is here: https://github.com/ipni/indexstar/blob/main/server.go#L208
https://github.com/ipni/indexstar/blob/main/delegated_translator.go#L28-L34
indexstar is what we use for handling queries that get proxied to different backends.
Andrew Gillis commented
Closing. Reopen if this does not answer your question.