Hey!
I'm currently writing an API in Ktor and I was just wondering if it's possible to do this or if there's by chance a better way to achieve what I want.
Let's say we have two routes,
/test
and
/run
, if a condition in
/test
is not met I just want to internally call the route
/run
to go process a job, is there a way to do this or a better approach to my problem?
Thank you in advance!
h
hfhbd
01/07/2024, 9:47 PM
On server side? Just call your service internally? 🤔
t
Tech
01/07/2024, 9:48 PM
Yeah I thought so, was just wondering if there's a built in way to do that or if I need to do some stuff with Ktor client to call itself