Fork me on GitHub
#fulcro
<
2022-04-28
>
Quentin Le Guennec19:04:52

hello, I don't quite understand how to handle a http remote with multiple routes. Since I gave the url for the remote, I'm always making request to the same url? Should I create one remote per rest route?

lgessler19:04:25

you're talking about a REST API, not a pathom remote, right? if that's right, then why even register it with fulcro at all?

Quentin Le Guennec19:04:52

you think I'd be better off making a custom xhrio request?

Quentin Le Guennec19:04:13

and yes, it's a simple firebase functions api

lgessler19:04:23

yes, and then merging the data you get back yourself (assuming you want to get it into fulcro's db)

lgessler19:04:58

you could also try to have a client-side pathom instance i suppose--you'd need to write resolvers, and then the rest would work "as usual" with fulcro

❤️ 1
Quentin Le Guennec19:04:29

ok I see, I think simple xhrio requests would work just fine.