Hey! I'm currently writing an API in Ktor and I w...
# ktor
t
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
On server side? Just call your service internally? 🤔
t
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
a
This SO answer may be helpful.
t
I'll try it out, thank you!